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.2.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.2.tar.gz.
File metadata
- Download URL: miochat-1.0.2.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 |
1deb0d049a4484c7c23a891229aa8cd14326e87107e2906c14842392b3121067
|
|
| MD5 |
ef75a875043704aef3eb6dd05e17c8e4
|
|
| BLAKE2b-256 |
1231ff157272a27d6ab1719aeb97fe84f18ae1a99ea2694beb94e73e7b58b21f
|
File details
Details for the file miochat-1.0.2-py3-none-any.whl.
File metadata
- Download URL: miochat-1.0.2-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 |
91782fd3b56489740709f17b5c1460cebb7d1d76d348c8dec8c9a81d2bc5be88
|
|
| MD5 |
93d1dbd68e542757bba4f168971d22b0
|
|
| BLAKE2b-256 |
7ae1c2b74fec074624d1fdca719d54d5b08c301bc5561ca1854da1cee36304d9
|