Telegram requirements
To be able to use this tool, you will require a Telegram bot token and a group chat ID.
Telegram group chat ID reference
Installation
pip install asyncgram
Usage
Once you have your telegram bot token and group chat ID, and you've install asyncgram, you are ready to get started.
Creating a client
from asyncgram import Asyncgram
# replace XXX with your keys
TG_BOT_TOKEN = "XXX"
TG_GROUP_ID = "XXX"
client = Asyncgram(
tg_token = TG_BOT_TOKEN,
tg_group = TG_GROUP_ID
)
Logging messages
client.start()
messages = [
'Hello world',
'My name is codeman',
'My birthday was yesterday.'
]
for msg in messages: client.put(msg)
client.stop()
This is a toy example to get you started. Recommended usage would be to put relevant messages from some form of a websocket connection such that it's logged in an asynchronous way.
Donations
If you liked this tool and would like to support me, kindly send your donations in ETH to 0xB08f9B316ddBCA4Dc5736153Cd63B8d9Bec46Bab
Metadata
Release files for asyncgram 0.0.4
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 | |
|---|---|---|---|---|
| asyncgram-0.0.4.tar.gz | 2.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncgram-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.9 kB
Release files / asyncgram-0.0.4.tar.gz
| Download URL | asyncgram-0.0.4.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b785db4610ac0940aae7dbe72a3cd43526d338cc34cec3d004a3c043bcc354c
|
|
BLAKE2b-256 checksum How to use checksums |
190365c340abf430fa56cefbf5d1b76e17a8fea6c0d12cc1412166b1426c822b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.7.9 Darwin/20.6.0
|
Release files / asyncgram-0.0.4-py3-none-any.whl
| Download URL | asyncgram-0.0.4-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e638ffaae94bb3c44e8ae45f46b8a320343430a09294ca99d41685891995a075
|
|
BLAKE2b-256 checksum How to use checksums |
2ed1423d802a5c0b36989d34aaf2ea4339019ebdc657c8ad2596f80b4aabf7d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.10 CPython/3.7.9 Darwin/20.6.0
|
Security for asyncgram 0.0.4
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.