Telegram bot that reads a mail file and forwards to Telegram chat
Project description
Email to Telegram
Telegram bot that reads a mail file and forwards to Telegram chat. It has to be paired up with a mail server such as Postfix. It can handle forwarding image attachments that are PNG or JPG.
An Ansible role is available. https://github.com/ItsNotGoodName/ansible-role-email-to-telegram
Installation
pip install email-to-telegram
Configuration
Copy and edit config.def.ini to one of the following paths.
/etc/email-to-telegram/config.iniconfig.ini
You can get the chat_id from the web version of Telegram.
https://stackoverflow.com/a/45577773
Example systemd service file
[Unit]
Description=Starts email-to-telegram
After=network.target
[Service]
User=telegram
ExecStart=email-to-telegram
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file email-to-telegram-1.1.2.tar.gz.
File metadata
- Download URL: email-to-telegram-1.1.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8c708767c2f088549aee1bddc644b1c0f7c29c37d1b1d6ca65ee0097dd47c7c
|
|
| MD5 |
35c2775289fdf5e5599ece563d81c1b2
|
|
| BLAKE2b-256 |
688fb2218e65a566127468277c2bfcb1fd7e88faaad416ebdc324eacd43fd79a
|
File details
Details for the file email_to_telegram-1.1.2-py3-none-any.whl.
File metadata
- Download URL: email_to_telegram-1.1.2-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c84eb7d935e97067143b14ff876a27c1f2fda7e7772a2a378ec401473f6eae5
|
|
| MD5 |
036a477da3b3fca498eea7daf0d66c42
|
|
| BLAKE2b-256 |
9a7174e8bc4b2418b0cf12c5c6f7868897d402e89248f3f3a003b85780c61a24
|