Добавлен MessageButton
This commit is contained in:
parent
5f2c908da4
commit
7b70d1de18
19
maxapi/types/attachments/buttons/message_button.py
Normal file
19
maxapi/types/attachments/buttons/message_button.py
Normal file
@ -0,0 +1,19 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
from ....enums.button_type import ButtonType
|
||||
|
||||
from .button import Button
|
||||
|
||||
|
||||
class MessageButton(Button):
|
||||
|
||||
"""
|
||||
Кнопка для отправки текста
|
||||
|
||||
Attributes:
|
||||
type: Тип кнопки (определяет её поведение и функционал)
|
||||
text: Отправляемый текст
|
||||
"""
|
||||
|
||||
type: ButtonType = ButtonType.MESSAGE
|
||||
text: str
|
Loading…
x
Reference in New Issue
Block a user