Module tdlight.api

Class TdApi.InternalLinkTypeBotStartInGroup

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InternalLinkType
it.tdlight.jni.TdApi.InternalLinkTypeBotStartInGroup
Enclosing class:
TdApi

public static final 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 Details

    • 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
      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

      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 - String Username of the bot.
      startParameter - String The parameter to be passed to sendBotStartMessage.
    • InternalLinkTypeBotStartInGroup

      public InternalLinkTypeBotStartInGroup(DataInput input) throws IOException
      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