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.5.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.5.tar.gz.
File metadata
- Download URL: miochat-1.0.5.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 |
723aa69bd1e6161d63c930bf69ad5d5a5ce46658751891985c1bf352ba0f2472
|
|
| MD5 |
fb12cee520ebf48feaa4390b95ed06b0
|
|
| BLAKE2b-256 |
cf58d376eaf789fda698e8ff24c10da4c5d2d7ba32944a7b262a7367a6475055
|
File details
Details for the file miochat-1.0.5-py3-none-any.whl.
File metadata
- Download URL: miochat-1.0.5-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 |
457f7afd434f59e082a0d7b4ff4801b51407674e587cd63e73482c6e897eb6f5
|
|
| MD5 |
3cc12ece826d29e2f832fd2363c61a1b
|
|
| BLAKE2b-256 |
b15a3e57adee7588deebe103f867a5d26c0ed3a75da81c5096531f1566c07a22
|