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

Telegram Bot Developer for BotFather

Portfolio project
Michael Guber

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

4 likes ยท 21 views ยท 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.

Tags

Collaborators