A bot that connects Telegram with Gmail
Project description
# Python Gmail Summary Bot
[![PyPI version](https://badge.fury.io/py/telegram-gmail-bot.svg)](https://badge.fury.io/py/telegram-gmail-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:
`shell 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](https://console.cloud.google.com/).
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](https://console.cloud.google.com/apis/dashboard).
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:
`shell cp .env.example .env `
- Create a virtual environment and install dependencies:
`shell python3 -m venv . source venv/bin/activate pip install -r requirements.txt `
- Run the bot:
`shell 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
Hashes for telegram_gmail_bot-0.1.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b45dfeb89e42bacf701cbad4bd6484363b268299ede60564ba5eb3d810ad573 |
|
MD5 | f94f5d7329ec6f10a0846b4a27f43bff |
|
BLAKE2b-256 | e191caf6029e579aedeeed68d01ff3954fd52cf36251a0a85ceb4f3c41c6b624 |
Hashes for telegram_gmail_bot-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11156884ccb3be55ebc5ba127ac301a4ed087c67a026adcaf304d76dfd585a90 |
|
MD5 | 977b22a23ce2701c22102a70ac4e3101 |
|
BLAKE2b-256 | ec423c0645044464a0e009b555024d840c262859719ad69216fcb3a4218ccf5f |