Python
How to install ?
pip install tg-bot-sender
Imports
from tg_bot_sender import Data, TelegramSender
Getting started
The logs parameter indicates that logs are saved in json format
tg = TelegramSender(telegramToken, logs = False)
Response structure
{ "amount": 0 } // number of messages sent
Options for sending messages
sendFromIds - sending to users
tg.sendFromIds([...telegramUserIds], Data(
text = 'Hello',
photo = 'Photo link',
buttons = [{
buttonTitle: 'Hello',
buttonUrl: 'https://google.com'
}]
))
sendFromId - sending to the user
tg.sendFromIds(telegramUserId, Data(
text = 'Hello',
photo = 'Photo link',
buttons = [{
buttonTitle: 'Hello',
buttonUrl: 'https://google.com'
}]
))
Metadata
Release files for tg-bot-sender 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tg_bot_sender-0.7.tar.gz | 3.0 kB | Without provenance | Details for tg_bot_sender-0.7.tar.gz |
Release files / tg_bot_sender-0.7.tar.gz
| Download URL | tg_bot_sender-0.7.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cea59b475d900d51cac60712159c27a80ee0d5721c4aa59c9c8816c39a180a9
|
|
BLAKE2b-256 checksum How to use checksums |
e4be866107424376f5a4282546a0aa7f06760b58d058780e92ebab8b99e8e41f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.0
|
Security for tg-bot-sender 0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.