
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.