Module tdlight.api

Class TdApi.SendBotStartMessage

Enclosing class:
TdApi

public static final class TdApi.SendBotStartMessage extends TdApi.Function<TdApi.Message>
Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires canInviteUsers member right. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message.

Returns Message

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Identifier of the bot.
    long
    Identifier of the target chat.
    static final int
    Identifier uniquely determining type of the object.
    A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires canInviteUsers member right.
    SendBotStartMessage(long botUserId, long chatId, String parameter)
    Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires canInviteUsers member right.
    Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires canInviteUsers member right.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Returns an identifier uniquely determining type of the object.
    int
     
    void
    Serialize the TDLib class

    Methods inherited from class it.tdlight.jni.TdApi.Function

    toString

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • botUserId

      public long botUserId
      Identifier of the bot.
    • chatId

      public long chatId
      Identifier of the target chat.
    • parameter

      public String parameter
      A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking).
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • SendBotStartMessage

      public SendBotStartMessage()
      Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires canInviteUsers member right. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message.

      Returns Message

    • SendBotStartMessage

      public SendBotStartMessage(long botUserId, long chatId, String parameter)
      Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires canInviteUsers member right. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message.

      Returns Message

      Parameters:
      botUserId - Identifier of the bot.
      chatId - Identifier of the target chat.
      parameter - A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking).

      Returns Message

    • SendBotStartMessage

      public SendBotStartMessage(DataInput input) throws IOException
      Invites a bot to a chat (if it is not yet a member) and sends it the /start command; requires canInviteUsers member right. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message.

      Returns Message

      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object