delete_group_call_participant_messages()

async Client.delete_group_call_participant_messages()

Delete all messages from a specific participant in a group call or live stream chat.

Usable by Users Bots
Parameters:
  • chat_id (int | str | GroupCall) – Target chat ID or GroupCall object.

  • participant (int | str | InputPeer) – Participant whose messages should be deleted.

  • report_spam (bool, optional) – Pass True to report the messages as spam.

Returns:

Updates – Updates resulting from deleting participant messages.

Example

await app.delete_group_call_participant_messages(chat_id, participant="spammer_username")