Package org.drinkless.tdlib
Class TdApi.SavePreparedKeyboardButton
- Enclosing class:
TdApi
Saves a keyboard button to be shown to the given user; for bots only.
Returns Text
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionThe button; must be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot.static final intIdentifier uniquely determining type of the object.longIdentifier of the user. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which saves a keyboard button to be shown to the given user; for bots only.SavePreparedKeyboardButton(long userId, TdApi.KeyboardButton button) Creates a function, which saves a keyboard button to be shown to the given user; for bots only. -
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
-
userId
public long userIdIdentifier of the user. -
button
The button; must be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SavePreparedKeyboardButton
public SavePreparedKeyboardButton()Default constructor for a function, which saves a keyboard button to be shown to the given user; for bots only.Returns
Text -
SavePreparedKeyboardButton
Creates a function, which saves a keyboard button to be shown to the given user; for bots only.Returns
Text- Parameters:
userId- Identifier of the user.button- The button; must be of the type keyboardButtonTypeRequestUsers, keyboardButtonTypeRequestChat, or keyboardButtonTypeRequestManagedBot.
-
-
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.Text>- Returns:
- this.CONSTRUCTOR
-