Module tdlight.api

Class TdApi.JoinChat

Enclosing class:
TdApi

public static final class TdApi.JoinChat extends TdApi.Function<TdApi.Ok>
Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method. May return an error with a message "INVITE_REQUEST_SENT" if only a join request was created. Returns Ok
  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • JoinChat

      public JoinChat()
      Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method. May return an error with a message "INVITE_REQUEST_SENT" if only a join request was created. Returns Ok
    • JoinChat

      public JoinChat(long chatId)
      Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method. May return an error with a message "INVITE_REQUEST_SENT" if only a join request was created. Returns Ok
      Parameters:
      chatId - long Chat identifier.
    • JoinChat

      public JoinChat(DataInput input) throws IOException
      Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method. May return an error with a message "INVITE_REQUEST_SENT" if only a join request was created. Returns Ok
      Throws:
      IOException
  • Method Details