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.3.tar.gz
(1.3 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.3.tar.gz.
File metadata
- Download URL: miochat-1.0.3.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3ace7483eb4dc9ea76011d3d4b6ad22f17e8cd244b91bbdf921239e41bb462e
|
|
| MD5 |
cd1ff072a785dcdfb15077340320a09c
|
|
| BLAKE2b-256 |
932f6523abf0d288bd50acd7b395b80a95725453ac87024c40f39edb61822bed
|
File details
Details for the file miochat-1.0.3-py3-none-any.whl.
File metadata
- Download URL: miochat-1.0.3-py3-none-any.whl
- Upload date:
- Size: 1.3 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 |
41438957fcc74c5fdeb0c9a04f6d4d6b3dff4535afc76773f4f57eda6c4ca3b0
|
|
| MD5 |
f6c67d755c3e6b71740ad0dc8d3bc451
|
|
| BLAKE2b-256 |
cfcafc66c9786affc676e87a9724f8e72956db47efcc28cacabc12a26450222a
|