A bot that connects Telegram with Gmail
Project description
Python Gmail Summary Bot
A bot to summarize your Gmail emails using the Gmail API and send summaries to Telegram.
Features
- Summarizes Gmail emails.
- Sends email summaries to a specified Telegram chat.
Installation
You can install the package via pip:
pip install telegram-gmail-bot
Setup
Creating credentials for accessing Google APIs
Step 1: Create a Service Account
- Go to the Google Cloud Console: Google Cloud Console.
- Select your project or create a new one.
- Search for APIs & Services in the search bar.
- Click on Credentials in the left sidebar.
- Click on Create Credentials and select OAuth client ID.
- Select Desktop app as the application type.
- Add the generated credentials as environment variables in your project.
Step 2: Enable the Gmail API
- Go to the API & Services page: API & Services.
- Enable the Gmail API:
- Click on "Enable APIs and Services".
- Search for "Gmail API" and enable it for your project.
Local Usage
-
Copy the example environment file and fill in your credentials:
cp .env.example .env
-
Create a virtual environment and install dependencies:
python3 -m venv . source venv/bin/activate pip install -r requirements.txt
-
Run the bot:
python main.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for telegram_gmail_bot-0.1.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4acd2f52b4280612c573c34d303655af87c765389e57a0ed6099cb134549c2a1 |
|
MD5 | 559361424d8d07d304be45164db852e2 |
|
BLAKE2b-256 | f91453b99ad31aeaf963a0328800d16320a237227d1624bffe67cc5ace39370e |
Close
Hashes for telegram_gmail_bot-0.1.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 607bd0a13f51e2f77be0990f8af5067570f3bef5493bc35a8af1f9b003be70bb |
|
MD5 | 77d04cb86d5c00c61694b2ba03c5fb28 |
|
BLAKE2b-256 | 6702042d25cfa10916dec29b0c30e685b067081692b2e3b79231f884579aeb0d |