Package org.drinkless.tdlib
Class TdApi.ShareUsersWithBot
- Enclosing class:
TdApi
Shares users after pressing a keyboardButtonTypeRequestUsers button with the bot.
Returns Ok
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionintIdentifier of the button.static final intIdentifier uniquely determining type of the object.booleanPass true to check that the users can be shared by the button instead of actually sharing them.long[]Identifiers of the shared users.Source of the button. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which shares users after pressing a keyboardButtonTypeRequestUsers button with the bot.ShareUsersWithBot(TdApi.KeyboardButtonSource source, int buttonId, long[] sharedUserIds, boolean onlyCheck) Creates a function, which shares users after pressing a keyboardButtonTypeRequestUsers button with the bot. -
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
-
source
Source of the button. -
buttonId
public int buttonIdIdentifier of the button. -
onlyCheck
public boolean onlyCheckPass true to check that the users can be shared by the button instead of actually sharing them. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ShareUsersWithBot
public ShareUsersWithBot()Default constructor for a function, which shares users after pressing a keyboardButtonTypeRequestUsers button with the bot.Returns
Ok -
ShareUsersWithBot
public ShareUsersWithBot(TdApi.KeyboardButtonSource source, int buttonId, long[] sharedUserIds, boolean onlyCheck) Creates a function, which shares users after pressing a keyboardButtonTypeRequestUsers button with the bot.Returns
Ok- Parameters:
source- Source of the button.buttonId- Identifier of the button.sharedUserIds- Identifiers of the shared users.onlyCheck- Pass true to check that the users can be shared by the button instead of actually sharing them.
-
-
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.Ok>- Returns:
- this.CONSTRUCTOR
-