π¦ Complete Financial Integration Solution - A comprehensive multi-language ecosystem with C# (.NET 8) and Python implementations for SimpleFIN banking integration through Telegram Bot, Web API, and WebApp interfaces.
A dual-language implementation of SimpleFIN financial accounts integration with Telegram. Choose between C# (.NET 8) or Python implementations, both featuring secure configuration, real-time financial data access, and modern web interfaces.
- Enterprise-grade .NET 8 console application and ASP.NET Core API
- Advanced Configuration with appsettings.json and environment variables
- VS Code Integration with complete development environment
- GitHub Actions CI/CD for automated building and testing
π Location: /csharp | π Documentation: C# README
- Modern async/await Python implementation with FastAPI
- Type Safety with full type hints and Pydantic models
- Auto-Documentation with FastAPI's OpenAPI integration
- Flexible Deployment options for containers and cloud platforms
π Location: /python | π Documentation: Python README
| Feature | C# (.NET 8) | Python |
|---|---|---|
| Performance | βββββ Compiled, very fast | ββββ Fast with async/await |
| Memory Usage | ββββ Efficient | βββ Moderate |
| Development Speed | βββ Structured, enterprise | βββββ Rapid prototyping |
| Deployment | βββββ Single executable | βββ Runtime required |
| Documentation | ββββ XML docs + IntelliSense | βββββ Auto-generated API docs |
| Type Safety | βββββ Compile-time checking | ββββ Runtime with type hints |
| Ecosystem | ββββ .NET ecosystem | βββββ Vast Python libraries |
/startand/help- Interactive command guidance/add- Secure bank connection via SimpleFIN tokens/accountsand/refresh- Real-time account data with balance information/remove- Secure bank connection removal/web- Launch integrated WebApp interface
GET /api/accounts?user_id={id}- Retrieve user's bank connections- CORS enabled for cross-origin requests
- Error handling with structured responses
- Health checks and monitoring endpoints
- Telegram WebApp API integration with native theming
- Responsive design for mobile and desktop
- Real-time data synchronization with bot and API
- Enhanced UX with loading states and error handling
- Multi-environment support (Development/Production)
- Environment variables for secure production deployment
- Validation with helpful error messages for developers
- Flexible settings for different deployment scenarios
SimpleFinTelegramBot/
βββ π csharp/ # C# (.NET 8) Implementation
β βββ SimpleFinBot/ # Console Bot Application
β βββ SimpleFinWebApi/ # ASP.NET Core API
β βββ SimpleFinWebApp/ # Static WebApp
β βββ .github/workflows/ # CI/CD Pipeline
β βββ README.md # C# Documentation
βββ π python/ # Python Implementation
β βββ SimpleFinBot/ # Async Python Bot
β βββ SimpleFinWebApi/ # FastAPI Backend
β βββ SimpleFinWebApp/ # Enhanced WebApp
β βββ README.md # Python Documentation
βββ README.md # This file
βββ DESCRIPTION.md # Project overview
βββ GITHUB_DESCRIPTION.md # Repository metadata
cd csharp
dotnet restore
# Configure bot token in appsettings.json or environment variables
dotnet run --project SimpleFinWebApi # Terminal 1
dotnet run --project SimpleFinBot # Terminal 2cd python/SimpleFinBot
pip install -r requirements.txt
# Configure bot token in config.json or environment variables
cd ../SimpleFinWebApi && pip install -r requirements.txt
python api.py # Terminal 1
cd ../SimpleFinBot && python bot.py # Terminal 2Both implementations include:
- β Secure token management with environment variable support
- β Input validation and sanitization
- β Parameterized database queries preventing SQL injection
- β CORS configuration for API security
- β Error handling with user-friendly messages
- β Configuration validation with startup checks
- π· C# Setup Guide - Complete .NET 8 setup instructions
- π Python Setup Guide - Python installation and configuration
- βοΈ C# Configuration - Advanced C# configuration
- βοΈ Python Configuration - Python configuration guide
- π Project Overview - Architecture and design decisions
- π·οΈ Repository Info - GitHub metadata and tags
- Setup: Choose your preferred implementation (C# or Python)
- Configure: Set up your Telegram bot token via @BotFather
- Deploy: Run both the API server and bot application
- Connect: Start a chat with your bot and use
/addto connect banks - Access: Use bot commands or the WebApp interface to view account data
- VS Code: Complete development environment with tasks and debugging
- GitHub Actions: Automated CI/CD pipeline for testing and building
- IntelliSense: Full IDE support with compile-time error checking
- FastAPI Docs: Automatic API documentation at
/docs - Type Hints: Full type safety with runtime validation
- Hot Reload: Development server with auto-restart on changes
- Choose your preferred implementation (C# or Python)
- Fork the repository
- Create a feature branch
- Follow the coding standards for your chosen language
- Submit a pull request with tests
This project serves as a comprehensive template for SimpleFIN integration with Telegram bots in both C# and Python.
π· Choose C# for enterprise applications with high performance requirements
π Choose Python for rapid development and extensive ecosystem integration
Both implementations provide identical functionality with language-specific optimizations!