Metadata-Version: 2.4
Name: miochat
Version: 1.0.8
Summary: MioChat Module
Author: Akuma & Soroush Ahmadi
Author-email: testoftesttestfortest@gmail.com
License: MIT
Description-Content-Type: text/markdown
Requires-Dist: requests
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: license
Dynamic: requires-dist
Dynamic: summary

# Vira
## Without Token - Way 1

```python
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

```python
from miochat.vira import ViraChat

token = ""

vira = ViraChat(token)
prompt = vira.sendPrompt("سلام")
print("ai:", prompt.message.content)
```

# Gold
```python
from miochat.gold import getGold

price_of_gold = getGold()
print(price_of_gold) # Str | None
```

# Cryptos
```python
from miochat.crypto import MioCrypto

miocrypto = MioCrypto()

# get crypto`s names
cryptos_names = miocrypto.getCryptos()
print(cryptos_names)

# get top 10 cryptos
top_10 = miocrypto.getTopCryptos()
print(top_10)

# get top 20 cryptos
top_20 = miocrypto.getTopCryptos(20)
print(top_20)

# get crypto by symbol
crypto_by_symbol = miocrypto.getCryptoBySymbol("btc") # or BTC
print(crypto_by_symbol)
```
