email-to-telegram-1.1.2
توضیحات
Telegram bot that reads a mail file and forwards to Telegram chat
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | email-to-telegram-1.1.2 |
| نام | email-to-telegram |
| نسخه کتابخانه | 1.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ItsNotGoodName |
| ایمیل نویسنده | gurnaindeol@gmail.com |
| آدرس صفحه اصلی | https://github.com/ItsNotGoodName/email-to-telegram |
| آدرس اینترنتی | https://pypi.org/project/email-to-telegram/ |
| مجوز | - |
# 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](<https://en.wikipedia.org/wiki/Postfix_(software)>).
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
```
نیازمندی
| مقدار | نام |
|---|---|
| <14.0,>=13.5 | python-telegram-bot |
| <3.0.0,>=2.1.1 | watchdog |
| <4.0.0,>=3.15.0 | mail-parser |
| - | tox |
| - | pytest |
| - | pytest-datadir |
| - | pytest-lazy-fixture |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6, <4 | Python |
نحوه نصب
نصب پکیج whl email-to-telegram-1.1.2:
pip install email-to-telegram-1.1.2.whl
نصب پکیج tar.gz email-to-telegram-1.1.2:
pip install email-to-telegram-1.1.2.tar.gz