Добавлен MessageButton
This commit is contained in:
		
							
								
								
									
										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
 | 
			
		||||
		Reference in New Issue
	
	Block a user