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.4.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for tnt_python-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d4206b80cb7f65d4622048bde4b0d5fb55483e2bcdc3f44a34a1f7e23829367 |
|
MD5 | 49e30e55bb65ca74f75f7bdc40c12582 |
|
BLAKE2b-256 | cd8b9eb47392c9fa64ae4eb8d3ec01b6480c905194967b4478d9570224b02fb4 |