Forwards mail from mail file to Telegram chat.
Project description
Email to Telegram
A telegram bot that reads a mailbox file and forwards it to a Telegram chat. This can 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/role-email-to-telegram
Installation
pip3 install .
Configuration
Copy config.def.ini
to /etc/email-to-telegram/config.ini
and edit it.
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-bot
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.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6294a8a2cb5f91ecfb900be419764f8e9c92c1e1e18db5561f1edaecd8d29b89 |
|
MD5 | 8c00d90820bae53c0319978b248d11d2 |
|
BLAKE2b-256 | 280db0228b91287305ebcd18a4cbc829e4819b5a3b9afd4a624388a8096c621d |