A lightweight and easy-to-use Python Telegram Bot wrapper library.
- Simple polling-based Telegram bot
- Easy message handling
- Structured and modular code
- Clean API to extend your bot's functionality
You can install the library via pip:
pip install nt_pygrambotHere's a basic example of how to use nt_pygrambot:
# Echo Bot Example With nt_pygrambot
from nt_pygrambot.updater import Updater
from nt_pygrambot.handlers import MessageHandler
from nt_pygrambot.types import Update
def handle_message(update: Update):
if update.message.text:
update.message.reply_text(update.message.text)
updater = Updater("TOKEN")
updater.dispatcher.add_handler(MessageHandler(handle_message))
updater.start_polling()- Python >= 3.9
More documentation and usage examples will be available soon.
For now, you can explore the source code and basic examples in the GitHub repository.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License.