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.0.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.0.tar.gz.
File metadata
- Download URL: miochat-1.0.0.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 |
28fc34feff5f07a1d7fc1226987ff884d7e46bc2f78d5e97ac665bb75061f3f1
|
|
| MD5 |
68e5786f91fe038a5876a285a30815d4
|
|
| BLAKE2b-256 |
545876c7e48e5baa084c7f781ac023e9f3f25d55d82e468ae63763af388a6a97
|
File details
Details for the file miochat-1.0.0-py3-none-any.whl.
File metadata
- Download URL: miochat-1.0.0-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 |
00c474b6ae05a0a70be14ee920fd36a514f210ac50d779235f62f6b6df2963cc
|
|
| MD5 |
7fa9026595cb3d81e7184e67200b8a12
|
|
| BLAKE2b-256 |
38b43d2cb2837ec341a14092cba281063d54c0318264ad77b991921241536ad6
|