Metadata-Version: 2.4
Name: tigram_nt_bot
Version: 0.1.0
Summary: A simple pyton telegram libary
Home-page: https://github.com/Amirxon525/py-gram-bot
Author: SN2
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-python
Dynamic: summary

# nt-telegram-bot

Oddiy va minimal telegram bot uchun Python + requests asosidagi kutubxona.

```python
from telegram.updater import Updater
from telegram.handlers import MessageHandler
from telegram.types import Update
from config import TOKEN
```

`nt-telegram-bot` sizga hech qanday qo‘shimcha murakkabliksiz, tozalangan interfeys orqali Telegram bot yaratish imkonini beradi.

## ⚙️ O‘rnatish

```bash
pip install tigram_nt_bot
```

## 🚀 Boshlang‘ich foydalanish

Quyidagi kod namunasi orqali botni ishga tushiring:

```python
from telegram.updater import Updater
from telegram.handlers import MessageHandler
from telegram.types import Update
from config import TOKEN


def handle_message(update: Update):
    message = update.message

    if message.text:
        if message.text == '/start':
            message.reply_text(
                TOKEN,
                "assalomu alaykum. ECHO BOT"
            )
        else:
            message.reply_text(TOKEN, message.text)
    elif message.contact:
        pass
    elif message.photo:
        pass
    elif message.sickter:
        pass


updater = Updater(TOKEN)
dispatcher = updater.dispatcher

dispatcher.add_handler(MessageHandler(handle_message))
updater.start_polling()
```

## 📌 Xususiyatlar

* `Updater` yordamida soddalashtirilgan polling
* `MessageHandler` orqali barcha turdagi xabarlarni tutib olish
* `Update` obyektiga qulay kirish

## 📣 Hissa qo‘shish

Pull request’lar mamnuniyat bilan qabul qilinadi.
Agar xatolik topsangiz — Issue qoldiring.

## 📄 Litsenziya

MIT
