Class ForceReplyKeyboard
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.replykeyboard.ForceReplyKeyboard
-
- All Implemented Interfaces:
Serializable,BotApiObject,Validable,ReplyKeyboard
public class ForceReplyKeyboard extends Object implements ReplyKeyboard
- Version:
- 1.0 Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot‘s message and tapped ’Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ForceReplyKeyboard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-