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.ini
config.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
Close
Hashes for email_to_telegram-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c84eb7d935e97067143b14ff876a27c1f2fda7e7772a2a378ec401473f6eae5 |
|
MD5 | 036a477da3b3fca498eea7daf0d66c42 |
|
BLAKE2b-256 | 9a7174e8bc4b2418b0cf12c5c6f7868897d402e89248f3f3a003b85780c61a24 |