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 details)

Uploaded Source

File details

Details for the file PyTgSend-1.2.tar.gz.

File metadata

  • Download URL: PyTgSend-1.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for PyTgSend-1.2.tar.gz
Algorithm Hash digest
SHA256 7b0fc424cec2c17052804ab9a94bb51622e10a625143cddd3183f23b2ed1d6e3
MD5 90e07db404de5a40a199a816215483b4
BLAKE2b-256 dccae10a3b044cd8ea1f38e68eec862246bd27f20c968cbe8788bed0a8ae12b3

See more details on using hashes here.

Supported by

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