Skip to main content

Самая полная библиотека для Telegram ботов с 150+ методами

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.2.0.tar.gz (14.5 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.2.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for forgram-2.2.0.tar.gz
Algorithm Hash digest
SHA256 2f221a0854aa170e73ca4fe29751619aeb05bc95bf9eebad3f77dbbd95818259
MD5 c44e6812efb7f382221d5f3ba52e6387
BLAKE2b-256 34b574d41abcdddfeac012480aea20531b40a7c866cac21581a208c5cdc394cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: forgram-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d22eb8541c9473ccdb21fead681f2d1b94bb26e7992b92376459280a8198af8
MD5 1f359cf4b1ab5f8df43a9cb7e3854770
BLAKE2b-256 fe9e4323646cf7040b0e6fe10c1730b90af421926ca54e1480c49147b3c8475d

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