Telegram notification tool
Project description
tnt-python
tnt - Telegram notification tool
Features
- Sending text messages to chat
- Sending text documents to chat
Installation
poetry add tnt-python
or
pip install tnt-python
Example
This code sends a message on your behalf to the chat
import os
from tnt_python.types import MessageData
from tnt_python.services import NotifyerService
# Your API Token
token = os.getenv("TG_TOKEN")
data = MessageData(
chat_id=os.getenv("CHAT_ID"),
text="Hello world"
)
NotifyerService.send_message(data, token)
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
tnt-python-0.1.3.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for tnt_python-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76316406da5326fc2e30cb041ce4b3b74b01eb527fbe9c1fd5d641c8d1bbab2b |
|
MD5 | d7316600885a9aefd3fd1bfbf596c9fa |
|
BLAKE2b-256 | 5dd8d1ad73436850d5d90b27e78adf3f841d7898698da96b0b2fcb7b630bc093 |