Добавлен OpenAppButton
This commit is contained in:
parent
7b70d1de18
commit
bd06b33343
22
maxapi/types/attachments/buttons/open_app_button.py
Normal file
22
maxapi/types/attachments/buttons/open_app_button.py
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
from typing import Optional
|
||||||
|
|
||||||
|
from ....enums.button_type import ButtonType
|
||||||
|
|
||||||
|
from .button import Button
|
||||||
|
|
||||||
|
|
||||||
|
class OpenAppButton(Button):
|
||||||
|
|
||||||
|
"""
|
||||||
|
Кнопка для открытия приложения
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
text: Видимый текст кнопки
|
||||||
|
web_app: Публичное имя (username) бота или ссылка на него, чьё мини-приложение надо запустить
|
||||||
|
contact_id: Идентификатор бота, чьё мини-приложение надо запустить
|
||||||
|
"""
|
||||||
|
|
||||||
|
type: ButtonType = ButtonType.OPEN_APP
|
||||||
|
text: str
|
||||||
|
web_app: Optional[str] = None
|
||||||
|
contact_id: Optional[int] = None
|
Loading…
x
Reference in New Issue
Block a user