Простая и быстрая библиотека для Telegram ботов
Project description
Forgram
Простая и удобная библиотека для создания Telegram ботов на Python.
Установка
pip install forgram
Пример использования
import asyncio
from forgram import Bot
bot = Bot("YOUR_BOT_TOKEN")
@bot.message_handler(commands=['start'])
async def start_handler(message):
await message.reply("Привет! Это бот на Forgram")
@bot.message_handler()
async def echo_handler(message):
if message.text:
await message.reply(f"Вы написали: {message.text}")
async def main():
await bot.polling()
asyncio.run(main())
Основные возможности
- Простой и понятный API
- Поддержка асинхронности
- Встроенная система состояний
- Middleware для обработки запросов
- Различные типы хранилищ данных
- Поддержка webhook
- Система аналитики
Документация
Полная документация находится в папке docs/
Лицензия
MIT License
Автор
Forgram Team
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
forgram-2.1.3.tar.gz
(13.5 kB
view details)
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
forgram-2.1.3-py3-none-any.whl
(13.6 kB
view details)
File details
Details for the file forgram-2.1.3.tar.gz.
File metadata
- Download URL: forgram-2.1.3.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
077c90d312d4cde57dc35fa2757d273a559191cf7d33e20f4ffeeb5f3d8464db
|
|
| MD5 |
e4972547183fb2f267daa397adcb8174
|
|
| BLAKE2b-256 |
42905dccd977db194af0377151decbd73558626bc267b110d4ee09bc95719533
|
File details
Details for the file forgram-2.1.3-py3-none-any.whl.
File metadata
- Download URL: forgram-2.1.3-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f52030aa7b9b02c004e97d17a46ffb2f732407af187e325430b369e810503d2
|
|
| MD5 |
a5ed13d8f3a624e348a5bc393881963f
|
|
| BLAKE2b-256 |
5c8f1fa78b355cd6ff6b4f0defd55adf221a359aff20ff635662b27468614688
|