Skip to main content

Lightweight function to send telegram messages

Project description

PyTgSend

Lightweight python snipet to send message(s) to telegram through bot api. There are many like it, but this one is mine

Only requires requests lib. Was done using python 3.9, full supported python versions list - conveniently left for end user to deal with.

Only sends text messages at the moment. No images or anything, just text.

Installation example:

python3 -m pip install PyTgSend

Usage example:

from PyTgSend import tg_send_message

tg_send_message(
    'your message here', 
    conf={
        'token': '<your_bot_token>', 
        'chat_id': '<your_chat_id>'
    }
)

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

PyTgSend-1.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page