MioChat Module
Project description
Without Token - Way 1
from miochat.vira import ViraChat
phone = "09xxxxxxxxx"
vira = ViraChat()
vira.sendOtpCode(phone)
log = vira.login(phone, input("enter code: "))
print("your token:", log.token)
prompt = vira.sendPrompt("سلام")
print("ai:", prompt.message.content)
With Token - Way 2
from miochat.vira import ViraChat
token = ""
vira = ViraChat(token)
prompt = vira.sendPrompt("سلام")
print("ai:", prompt.message.content)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
miochat-1.0.6.tar.gz
(3.9 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 miochat-1.0.6.tar.gz.
File metadata
- Download URL: miochat-1.0.6.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01ba0d7d8e65d540b054fde28a9b91922bf94eedc8f1fd418ed8fe2e844928be
|
|
| MD5 |
4723d4090613274b7b43a67871d9f8c6
|
|
| BLAKE2b-256 |
681ef4f3126ec88ce0a266fe57c5f4c99dc0dbe26500174cc8d502c56d4c021c
|
File details
Details for the file miochat-1.0.6-py3-none-any.whl.
File metadata
- Download URL: miochat-1.0.6-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
784882f0e09c036ed8ac61f38a348c3c4e94df2e9eaa97e9bc960e7b7771c69e
|
|
| MD5 |
9a10407afe79173a9c53577639afb4c0
|
|
| BLAKE2b-256 |
fa2121197196762b56210c96dad0672cc124b0788d5d18b3d01bf72c9c0568a3
|