messages.DeleteChatUser

class pyrogram.raw.functions.messages.DeleteChatUser[source]

Deletes a user from a chat and sends a service message on it.

Usable by Users Bots
Details:
  • Layer: 229

  • ID: A2185CAB

Parameters:
  • chat_id (int 64-bit) – Chat ID

  • user_id (InputUser) – User ID to be deleted

  • revoke_history (bool, optional) – Remove the entire chat history of the specified user in this chat.

Returns:

Updates