messages.deleteChatUser
Deletes a user from a chat and sends a service message on it.
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
revoke_history | true | لأ | Remove the entire chat history of the specified user in this chat. |
chat_id | long | أيوه | معرف الدردشة |
user_id | InputUser | أيوه | User ID to be deleted |
الردود
Updates
MTProto RPC
- 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
- 400 · CHAT_ID_INVALID — The provided chat id is invalid.
- 400 · INPUT_USER_DEACTIVATED — The specified user was deleted.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.
- 400 · USER_ID_INVALID — The provided user ID is invalid.
- 400 · USER_NOT_PARTICIPANT — You're not a member of this supergroup/channel.