Metadata-Version: 2.1
Name: blazogram
Version: 1.0.1
Summary: BLAZOGRAM - is a library for make Telegram Bots
Author-email: EgorBlaze <blazeegor@gmail.com>
Project-URL: Homepage, https://github.com/blazeegor/blazogram
Project-URL: Bug Tracker, https://github.com/blazeegor/blazogram/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/x-rst

BLAZOGRAM - is a library for make Telegram Bots.

**Install**


.. code-block:: console


  $ pip install blazogram



**Example of use:**


.. code-block:: python



  from blazogram import Bot, Dispatcher
  from blazogram.types import Message, CallbackQuery, ReplyKeyboardMarkup, KeyboardButton
  from blazogram.filters import Command, Data
  from blazogram.utils import ParseMode
  import asyncio


  async def start_command(message: Message):
      kb = ReplyKeyboardMarkup()
      button = KeyboardButton(text='BUTTON')
      kb.add_button(button)
      await message.answer(text='Hello World!', reply_markup=kb)


  async def some_func(callback: CallbackQuery):
      await callback.answer(text='Hello World!', show_alert=True)


  async def main():
      bot = Bot(token='YOUR-BOT-TOKEN', parse_mode=ParseMode.HTML)
      dp = Dispatcher()
      dp.message.register(start_command, Command("start"))
      dp.message.register(some_func, Data("BUTTON_DATA"))
      await bot.skip_updates()
      await dp.start_polling(bot)


  if __name__ == '__main__':
      asyncio.run(main())


**Developer - @Blaze Egor**
