Skip to main content

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.4.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

miochat-1.0.4-py3-none-any.whl (1.3 kB view details)

Uploaded Python 3

File details

Details for the file miochat-1.0.4.tar.gz.

File metadata

  • Download URL: miochat-1.0.4.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

Hashes for miochat-1.0.4.tar.gz
Algorithm Hash digest
SHA256 0dadb1c9391d757febb23fcae9671ea19f293b38b0105fd09ab72c8c5a4bfa94
MD5 6f064844692677628059f8dbce0a431a
BLAKE2b-256 69320389819cc74bc1cbbbcef974811df6a624fc5ab096da54eb9454e5a22c31

See more details on using hashes here.

File details

Details for the file miochat-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: miochat-1.0.4-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

Hashes for miochat-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9a9dba5f44446ebbdd52c933c0af451c3faa7a3b24c12e266141457fc87a755d
MD5 3177e34bfeecd8b2bece06be51619552
BLAKE2b-256 31db6ce8cc9e403569baa127ba713e244dd7d3cf9b5fe02fd673cbe691004000

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page