Skip to main content

BLAZOGRAM - A library for make Telegram Bots.

Install

$ pip install blazogram

Example Usage

from blazogram import Bot, Dispatcher, BlazeLocale
from blazogram.types import Message, CallbackQuery, ReplyKeyboardMarkup, KeyboardButton
from blazogram.filters import Command, Data
from blazogram.enums 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.callback_query.register(some_func, Data("BUTTON_DATA"))

    await bot.skip_updates()
    try:
        await dp.start_polling(bot)
    finally:
        await bot.session.close()


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

Developer - @Blaze_Egor

Metadata

Release files for blazogram 2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for blazogram 2.1
File Size Uploaded Provenance Actions
blazogram-2.1.tar.gz 16.1 kB Without provenance Details for blazogram-2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for blazogram 2.1
File Interpreter ABI Platform Actions
blazogram-2.1-py3-none-any.whl Python 3 none any Details for blazogram-2.1-py3-none-any.whl

Total release size: 43.8 kB

Release files / blazogram-2.1.tar.gz

Download URL blazogram-2.1.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fc0409eee4e92b05f592bca9b98d798da66993c7a260d4e859aaaff10915aa7e
BLAKE2b-256 checksum
How to use checksums
c33ee7aeb21c7f078a9fad62e52a3d01d55504993ddbe84c6e8a076a19404e57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / blazogram-2.1-py3-none-any.whl

Download URL blazogram-2.1-py3-none-any.whl
Size 27.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c30654991aad86a6e5ec551b6523d6bcb5f1523093c9b0fe6f2b0e27bc3f29d3
BLAKE2b-256 checksum
How to use checksums
5d03bd29a4827b447c8d47d9b2143ac62875d684120282e6946d6b892166bc68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for blazogram 2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page