Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
514 B
4
Indexable
Never
class Replay(Keyboard):
    def __init__(
            self,
            id: str,
            button: str | None = None,
            when: Union[str, Callable, None] = None,
    ):
        super().__init__(when=when, id=id)
        self.id = id
        self.button = button

    async def _render_keyboard(
            self,
            data: Dict,
            manager: DialogManager,
    ) -> RawKeyboard:
        kbd = keyboards.get(self.button)
        if kbd:
            return kbd.keyboard
Leave a Comment