Python library for Arattai messaging API.
Project description
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arattai-0.3.1.tar.gz
(5.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arattai-0.3.1.tar.gz.
File metadata
- Download URL: arattai-0.3.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59da86abdc0dc5c74048673bb8744449f653ef95c61675cfb2cb3a78d15dceef
|
|
| MD5 |
19da035092f7380b8ae13ae6c7c03d62
|
|
| BLAKE2b-256 |
17a4452ebe2e528820290dcf5ff1a273e6b32e0dcb3f86faceddc7259715f646
|
File details
Details for the file arattai-0.3.1-py3-none-any.whl.
File metadata
- Download URL: arattai-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07c2ad3fa792b14adb51cf1e1d263a7c15074d3d10a2a5b09ca130b22759dda3
|
|
| MD5 |
dc7c60aaaaff2745851933373157c31a
|
|
| BLAKE2b-256 |
9b8496b7b004a15f468b4926c30cb8466458db7636ffa80579967d738ce3cc75
|