Package org.drinkless.tdlib
Class TdApi.GetPreparedKeyboardButton
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.KeyboardButton>
org.drinkless.tdlib.TdApi.GetPreparedKeyboardButton
- Enclosing class:
TdApi
Returns a keyboard button prepared by the bot for the user. The button will be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot.
Returns KeyboardButton
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the bot that created the button.static final intIdentifier uniquely determining type of the object.Identifier of the prepared button. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which returns a keyboard button prepared by the bot for the user.GetPreparedKeyboardButton(long botUserId, String preparedButtonId) Creates a function, which returns a keyboard button prepared by the bot for the user. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
botUserId
public long botUserIdIdentifier of the bot that created the button. -
preparedButtonId
Identifier of the prepared button. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetPreparedKeyboardButton
public GetPreparedKeyboardButton()Default constructor for a function, which returns a keyboard button prepared by the bot for the user. The button will be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot.Returns
KeyboardButton -
GetPreparedKeyboardButton
Creates a function, which returns a keyboard button prepared by the bot for the user. The button will be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot.Returns
KeyboardButton- Parameters:
botUserId- Identifier of the bot that created the button.preparedButtonId- Identifier of the prepared button.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.KeyboardButton>- Returns:
- this.CONSTRUCTOR
-