Url

Url represents a button with an url. It has no callbacks because telegram does not provide any notifications on click.

Url itself can be any text (including Const or Format)

from aiogram_dialog.widgets.kbd import Url
from aiogram_dialog.widgets.text import Const

go_btn = Url(
    Const("Github"),
    Const('https://github.com/Tishka17/aiogram_dialog/'),
)
../../../_images/url.png

Classes

class aiogram_dialog.widgets.kbd.button.Url(text, url, id=None, when=None, style=<aiogram_dialog.widgets.style.base.Style object>)
Parameters:
  • text (TextWidget)

  • url (TextWidget)

  • id (str | None)

  • when (str | MagicFilter | Predicate | None)

  • style (StyleWidget)