Skip to main content

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

Metadata

Release files for email-to-telegram 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for email-to-telegram 1.1.2
File Size Uploaded Provenance Actions
email-to-telegram-1.1.2.tar.gz 6.6 kB Without provenance Details for email-to-telegram-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for email-to-telegram 1.1.2
File Interpreter ABI Platform Actions
email_to_telegram-1.1.2-py3-none-any.whl Python 3 none any Details for email_to_telegram-1.1.2-py3-none-any.whl

Total release size: 15.3 kB

Release files / email-to-telegram-1.1.2.tar.gz

Download URL email-to-telegram-1.1.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f8c708767c2f088549aee1bddc644b1c0f7c29c37d1b1d6ca65ee0097dd47c7c
BLAKE2b-256 checksum
How to use checksums
688fb2218e65a566127468277c2bfcb1fd7e88faaad416ebdc324eacd43fd79a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / email_to_telegram-1.1.2-py3-none-any.whl

Download URL email_to_telegram-1.1.2-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c84eb7d935e97067143b14ff876a27c1f2fda7e7772a2a378ec401473f6eae5
BLAKE2b-256 checksum
How to use checksums
9a7174e8bc4b2418b0cf12c5c6f7868897d402e89248f3f3a003b85780c61a24
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for email-to-telegram 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page