from ArattaiBot import ArattaiBot, Bot
# Initialize the bot and show QR for login
ArattaiBot = ArattaiBot(isShowQr=True)
# Login using QR
bot = ArattaiBot.login_with_qr()
# Fetch chats (limit to 500)
chats = bot.fetch_chats(limit=500)
print(chats)
# Send a text message to a chat (using chat object)
bot.sender.send_message("Message", chat=chats["chat_id"])
# Send a text message to a specific chat ID
bot.sender.send_message("Message", chat_id="2343453654645_chat_id")
# Send a file with caption to a chat (using chat object)
bot.sender.send_file("file.extension", "Caption", chat=chats["chat_id"])
# Send a file with caption to a specific chat ID
bot.sender.send_file("file.extension", "Caption", chat_id="2343453654645_chat_id")
Metadata
Release files for arattai 0.3.1
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 | |
|---|---|---|---|---|
| arattai-0.3.1.tar.gz | 5.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arattai-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / arattai-0.3.1.tar.gz
| Download URL | arattai-0.3.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59da86abdc0dc5c74048673bb8744449f653ef95c61675cfb2cb3a78d15dceef
|
|
BLAKE2b-256 checksum How to use checksums |
17a4452ebe2e528820290dcf5ff1a273e6b32e0dcb3f86faceddc7259715f646
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.0
|
Release files / arattai-0.3.1-py3-none-any.whl
| Download URL | arattai-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07c2ad3fa792b14adb51cf1e1d263a7c15074d3d10a2a5b09ca130b22759dda3
|
|
BLAKE2b-256 checksum How to use checksums |
9b8496b7b004a15f468b4926c30cb8466458db7636ffa80579967d738ce3cc75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.0
|
Security for arattai 0.3.1
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.