Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ItsNotGoodName/email-to-telegram
Telegram bot that reads a mail file and forwards to Telegram chat.
https://github.com/ItsNotGoodName/email-to-telegram
Last synced: 3 months ago
JSON representation
Telegram bot that reads a mail file and forwards to Telegram chat.
- Host: GitHub
- URL: https://github.com/ItsNotGoodName/email-to-telegram
- Owner: ItsNotGoodName
- License: mit
- Archived: true
- Created: 2020-08-30T04:30:06.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-25T22:10:36.000Z (over 3 years ago)
- Last Synced: 2024-07-09T23:02:38.286Z (4 months ago)
- Language: Python
- Homepage:
- Size: 132 KB
- Stars: 11
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```