Package org.drinkless.tdlib
Class TdApi.ShareChatWithBot
- Enclosing class:
TdApi
Shares a chat after pressing a keyboardButtonTypeRequestChat 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 chat can be shared by the button instead of actually sharing it.longIdentifier of the shared chat.Source of the button. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot.ShareChatWithBot(TdApi.KeyboardButtonSource source, int buttonId, long sharedChatId, boolean onlyCheck) Creates a function, which shares a chat after pressing a keyboardButtonTypeRequestChat 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 chat can be shared by the button instead of actually sharing it. Doesn't check botIsMember and botAdministratorRights restrictions. If the bot must be a member, then all chats from getGroupsInCommon and all chats, where the user can add the bot, are suitable. In the latter case the bot will be automatically added to the chat. If the bot must be an administrator, then all chats, where the bot already has requested rights or can be added to administrators by the user, are suitable. In the latter case the bot will be automatically granted requested rights. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ShareChatWithBot
public ShareChatWithBot()Default constructor for a function, which shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot.Returns
Ok -
ShareChatWithBot
public ShareChatWithBot(TdApi.KeyboardButtonSource source, int buttonId, long sharedChatId, boolean onlyCheck) Creates a function, which shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot.Returns
Ok- Parameters:
source- Source of the button.buttonId- Identifier of the button.sharedChatId- Identifier of the shared chat.onlyCheck- Pass true to check that the chat can be shared by the button instead of actually sharing it. Doesn't check botIsMember and botAdministratorRights restrictions. If the bot must be a member, then all chats from getGroupsInCommon and all chats, where the user can add the bot, are suitable. In the latter case the bot will be automatically added to the chat. If the bot must be an administrator, then all chats, where the bot already has requested rights or can be added to administrators by the user, are suitable. In the latter case the bot will be automatically granted requested rights.
-
-
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
-