Skip to main content

Простая и быстрая библиотека для 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


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.4.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forgram-2.1.4-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file forgram-2.1.4.tar.gz.

File metadata

  • Download URL: forgram-2.1.4.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for forgram-2.1.4.tar.gz
Algorithm Hash digest
SHA256 be935316bdc6a5c1becf7be4e08f01ca516a9a432fff868837de8868d2aa5a02
MD5 4c5d93d0a0df1bc26543fa4309dd819b
BLAKE2b-256 e8b63dd79c4af55c16949ef380bc8d0cccdfeb84dd7afc5c55f198660bcfd5e3

See more details on using hashes here.

File details

Details for the file forgram-2.1.4-py3-none-any.whl.

File metadata

  • Download URL: forgram-2.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for forgram-2.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dc16aaa8ebaf891a43fc832496a7f2e80481b5bd2953d1ffcbe2bd7235e23705
MD5 b3cc45b0f26a19a56b2cb206110f8caf
BLAKE2b-256 8364e97a207a9d99ce828c908fdaf28fec3f7a127f6341b2e58d25bcc51f85ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page