Package org.drinkless.tdlib
Class TdApi.InternalLinkTypeBotStartInGroup
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.InternalLinkType
-
- org.drinkless.tdlib.TdApi.InternalLinkTypeBotStartInGroup
-
- Enclosing class:
- TdApi
public static class TdApi.InternalLinkTypeBotStartInGroup extends TdApi.InternalLinkType
The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a group to add the bot to, and then call sendBotStartMessage with the given start parameter and the chosen group chat. Bots can be added to a public group only by administrators of the group.
-
-
Field Summary
Fields Modifier and Type Field Description StringbotUsernameUsername of the bot.static intCONSTRUCTORIdentifier uniquely determining type of the object.StringstartParameterThe parameter to be passed to sendBotStartMessage.
-
Constructor Summary
Constructors Constructor Description InternalLinkTypeBotStartInGroup()The link is a link to a Telegram bot, which is supposed to be added to a group chat.InternalLinkTypeBotStartInGroup(String botUsername, String startParameter)The link is a link to a Telegram bot, which is supposed to be added to a group chat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
botUsername
public String botUsername
Username of the bot.
-
startParameter
public String startParameter
The parameter to be passed to sendBotStartMessage.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InternalLinkTypeBotStartInGroup
public InternalLinkTypeBotStartInGroup()
The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a group to add the bot to, and then call sendBotStartMessage with the given start parameter and the chosen group chat. Bots can be added to a public group only by administrators of the group.
-
InternalLinkTypeBotStartInGroup
public InternalLinkTypeBotStartInGroup(String botUsername, String startParameter)
The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a group to add the bot to, and then call sendBotStartMessage with the given start parameter and the chosen group chat. Bots can be added to a public group only by administrators of the group.- Parameters:
botUsername- Username of the bot.startParameter- The parameter to be passed to sendBotStartMessage.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-