Python Telegram Bot
Project description
nt_pygrambot
A lightweight and easy-to-use Python Telegram Bot wrapper library.
Features
- Simple polling-based Telegram bot
- Easy message handling
- Structured and modular code
- Clean API to extend your bot's functionality
Installation
You can install the library via pip:
pip install nt_pygrambot
Quick Start
Here'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()
Requirements
- Python >= 3.9
Documentation
More documentation and usage examples will be available soon.
For now, you can explore the source code and basic examples in the GitHub repository.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 nt_pygrambot-0.1.0.tar.gz.
File metadata
- Download URL: nt_pygrambot-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d69410c60b81d076fc281462dc46757cad8659d735c4983047b8e12c884a0910
|
|
| MD5 |
219bfc43718908c6c969dc589b0d21f5
|
|
| BLAKE2b-256 |
8c344f4cc7dc5d1c4bde7210961bffd1406e301580fdb3368329814e558e2220
|
File details
Details for the file nt_pygrambot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nt_pygrambot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c5c04043ec8b4152e3719596743789efe1c5c1544388b945969e895e5bbba39
|
|
| MD5 |
395980f52b4a2296e914769277486d56
|
|
| BLAKE2b-256 |
95e29db91cfc5079d64ea023452380eaa58b95241b38c8931a2bad5b014b0058
|