Class TdApi.SetChatMemberStatus

  • Enclosing class:
    TdApi

    public static class TdApi.SetChatMemberStatus
    extends TdApi.Function
    Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed.

    Returns Ok

    • Field Detail

      • chatId

        public long chatId
        Chat identifier.
      • memberId

        public TdApi.MessageSender memberId
        Member identifier. Chats can be only banned and unbanned in supergroups and channels.
      • CONSTRUCTOR

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

      • SetChatMemberStatus

        public SetChatMemberStatus()
        Default constructor for a function, which changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed.

        Returns Ok

      • SetChatMemberStatus

        public SetChatMemberStatus​(long chatId,
                                   TdApi.MessageSender memberId,
                                   TdApi.ChatMemberStatus status)
        Creates a function, which changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed.

        Returns Ok

        Parameters:
        chatId - Chat identifier.
        memberId - Member identifier. Chats can be only banned and unbanned in supergroups and channels.
        status - The new status of the member in the chat.