View Source ExTDLib.Method.SetChatMemberStatus (ExTDLib v0.0.4)

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 object_ptr<Ok>.

NameTypeDescription
chat_idstringChat identifier.
member_idMessageSenderMember identifier. Chats can be only banned and unbanned in supergroups and channels.
statusChatMemberStatusThe new status of the member in the chat.

More details on telegram's documentation.