java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InternalLinkType
it.tdlight.jni.TdApi.InternalLinkTypeBotStartInGroup
- Enclosing class:
- TdApi
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
Modifier and TypeFieldDescriptionUsername of the bot.static final int
The parameter to be passed to sendBotStartMessage. -
Constructor Summary
ConstructorDescriptionThe link is a link to a Telegram bot, which is supposed to be added to a group chat.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
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
botUsername
Username of the bot. -
startParameter
The parameter to be passed to sendBotStartMessage. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
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
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
- String Username of the bot.startParameter
- String The parameter to be passed to sendBotStartMessage.
-
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.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-