Skip to content

MailGram is a project that bridges Gmail and Telegram, allowing you to receive and read new emails directly in Telegram. Stay updated on your inbox without leaving your favorite messaging app.

License

Notifications You must be signed in to change notification settings

atheop1337/MailGram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gmail Monitoring Telegram Bot

A Telegram bot for monitoring Gmail inboxes, fetching the latest emails, and notifying users of new messages. This bot is built using the Aiogram library and Google Gmail API, offering a clean and user-friendly interface for managing email notifications directly through Telegram.


Features

Email Monitoring

  • Fetch Latest Emails:
    Users can fetch the 10 most recent emails from their Gmail inbox with /mail_fetcher.

  • Continuous Monitoring:
    The bot monitors the Gmail inbox every 30 seconds and notifies users of new emails.

  • Profile: Profile contents registration date, path to creds and more.

  • Stop Monitoring:
    Users can stop the monitoring process anytime using /stop_mail.

Gmail Authentication

  • Uses Google OAuth 2.0 for secure access to user Gmail accounts.
  • Automatically handles expired tokens and refreshes credentials.
  • Generates an authorization link if the user is not authenticated.

Telegram Integration

  • Inline keyboard for seamless interaction.
  • Callback query handling for efficient command execution.
  • HTML-based message formatting for visually appealing email previews.

Database Support

  • Tracks user data and preferences using an SQLite database.
  • Ensures each user’s credentials are securely stored in their unique directory.

Installation

Requirements


License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.


Author

👤 atheop1337

Feel free to contribute, report issues, or request features! 😊

About

MailGram is a project that bridges Gmail and Telegram, allowing you to receive and read new emails directly in Telegram. Stay updated on your inbox without leaving your favorite messaging app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages