Class TdApi.JoinChat

  • Enclosing class:
    TdApi

    public static class TdApi.JoinChat
    extends TdApi.Function
    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 Detail

      • chatId

        public long chatId
        Chat identifier.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JoinChat

        public JoinChat()
        Default constructor for a function, which 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)
        Creates a function, which 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 - Chat identifier.