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
Release history Release notifications | RSS feed
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)