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.

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.

      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.

      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.

      Returns Ok

      Throws:
      IOException
  • Method Details