action-react
action-react is a tool that reacts to Telegram chat messages.
Overview
action-react specifically listens to an account in a Telegram chat and makes corresponding http calls given the content of the message. This is inspired by tuixue.online-visa, a tool that periodically checks and publishes US consulate visa appointment availabilities across the world.
A possible application of this tool is to use it to listen to a Telegram bot publishing messages about new visa appointments, and makes http calls to the consulate appointment service to grab the desired spot.
Installation
Install the library's dependencies and build the library using:
pip install action-react
Usage
In your code, begin by importing the package:
from action-react import main
You can connect it to a telegram chat using:
main(api_id, api_hash, phone, username, target_date, cities)
For example, you can use main("123", "hash123", "+12345678901", "username", datetime.date(2022,2,2), ["boston", "houston"]) to start the function.
Alternatively, you can directly run python main.py after setting up the configurations in config.ini.
Metadata
Release files for action-react 0.0.5
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 |
|---|---|---|---|---|
| action-react-0.0.5.tar.gz | 19.9 kB | Without provenance | Details for action-react-0.0.5.tar.gz |
Release files / action-react-0.0.5.tar.gz
| Download URL | action-react-0.0.5.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6dca06b39aa1cab7a4d4774018b8c15966823c0699a5e8a1cbb3c2b66efa204
|
|
BLAKE2b-256 checksum How to use checksums |
35f9c2ae8ec35b7ec78f43da978649a64ad6f50132938c0435a5c1e894b4c3ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for action-react 0.0.5
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.