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.1.tar.gz
(3.8 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.1.tar.gz.
File metadata
- Download URL: miochat-1.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c7f76fad15069c3dfd351b8f47d3400e6b2edfb0bd88e10fd30a6256e42d245
|
|
| MD5 |
e4d544f3b901ec45a6b2d0f62056021f
|
|
| BLAKE2b-256 |
94703d881875a84948ebbf199837ddad8731fdeed3f5d8b6aae4f290511810a3
|
File details
Details for the file miochat-1.0.1-py3-none-any.whl.
File metadata
- Download URL: miochat-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.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 |
02b143b8f0848861d87000f8f7808e4b8fb1f71a9f6b4b43684cc96693222c33
|
|
| MD5 |
fadca14fc23e2dd33882ae1d76ded59a
|
|
| BLAKE2b-256 |
9ee529182d0688cdc5d46d1e003c8e2acb289c7b349c6359c2b3f95aed258ce2
|