Telegram Bot Developer for BotFather by Michael GuberTelegram Bot Developer for BotFather by Michael Guber

Telegram Bot Developer for BotFather

Michael  Guber

Michael Guber

1 collaborator

Overview

A .NET 8 console application that integrates Gmail with Telegram using OAuth 2.0 authentication. Each user authenticates their own Gmail account through the bot, which then forwards new inbox messages to their Telegram chat with interactive action buttons.

Key Features

🔐 OAuth 2.0 Authentication - Per-user Gmail authentication via web flow
📨 Email Forwarding - Automatically forwards new inbox messages to Telegram
🎛️ Interactive Buttons - Delete, Archive, Star, and Forward actions
🔄 Smart Filtering - Toggle between all emails or unread only with one click
🏷️ Label Management - View and modify Gmail labels
💾 SQLite Persistence - Stores messages, actions, and user credentials
🔄 Automatic Token Refresh - Handles expired access tokens seamlessly
🔗 Direct Links - Quick access to open emails in Gmail
📊 Action History - Tracks all user actions on messages
🛡️ CSRF Protection - Secure OAuth state validation
⚡ Resilient Polling - Retries with exponential backoff

Like this project

Posted Feb 3, 2026

The bot supports filtering emails to show only what you need. Per-user OAth, CSRF Protection, Token Encryption, Automatic Refresh, User Revocation.