Skip to main content

No project description provided

Project description

ChatLabs Aiogram Support

Установка

pip install chatlabs-aiogram-support

Необходимые переменные окружения:

  • BACKEND_SCHEMA
  • BACKEND_HOST
  • BACKEND_PORT
  • BACKEND_SUPPORT_PATH

Добавление роутера поддержки в диспетчер:

from aiogram import Dispatcher
import support

dp = Dispatcher()

dp.include_router(support.dialog_router)

Добавление кнопки поддержки в окно:

from aiogram_dialog import Dialog, Window
from aiogram_dialog.widgets.kbd import Start
from aiogram_dialog.widgets.text import Const
import support

Dialog(
    ...,
    Window(
        ...,
        Start(
            text=Const('Поддержка'),
            id='support',
            state=support.main_state,
        ),
        ...,
    ),
    ...,
)

Альтернативный вариант:

from aiogram_dialog import Dialog, Window
import support

Dialog(
    ...,
    Window(
        ...,
        support.SupportStartButton,
        ...,
    ),
    ...,
)

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

chatlabs_aiogram_support-0.2.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

chatlabs_aiogram_support-0.2.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file chatlabs_aiogram_support-0.2.0.tar.gz.

File metadata

  • Download URL: chatlabs_aiogram_support-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.7 Linux/6.11.0-1018-azure

File hashes

Hashes for chatlabs_aiogram_support-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8b06e73e49d2a6d096e76998b958459d54d9e39725aca9458c9ed7f30da71962
MD5 7a4cf32211557dbc3f4c5a352ecbbd4c
BLAKE2b-256 53c8a6ddbcd42f2880df5a75b2f13262aeb43fcadfb7c53f2fc740c6027a3ce5

See more details on using hashes here.

File details

Details for the file chatlabs_aiogram_support-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for chatlabs_aiogram_support-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc046e0ca38db8de238c06fc89cc8880235de4d877dd57b65f018c34ec051398
MD5 b6ca0134f705eaaa046306575d44abe0
BLAKE2b-256 61916dbc71b89cdbc95e0ab9afe2dcff899d628cf9c9a5fdd6eabefd8cf2c0da

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