Class KeyboardButtonRequestChat
java.lang.Object
org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons.KeyboardButtonRequestChat
- All Implemented Interfaces:
Serializable
,BotApiObject
,Validable
- Version:
- 6.5 This object defines the criteria used to request a suitable chat. The identifier of the selected chat will be shared with the bot when the corresponding button is pressed.
- Author:
- Ruben Bermudez
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates that mandatory fields are filled and optional objects
-
Constructor Details
-
KeyboardButtonRequestChat
public KeyboardButtonRequestChat()
-
-
Method Details
-
validate
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Specified by:
validate
in interfaceValidable
- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-