block_from_replies()

async Client.block_from_replies()

Stop getting notifications about discussion replies of a certain user in @replies.

Usable by Users Bots
Parameters:
  • msg_id (int) – ID of the message in the @replies chat.

  • delete_message (bool, optional) – Whether to delete the specified message as well.

  • delete_history (bool, optional) – Whether to delete all @replies messages from this user as well.

  • report_spam (bool, optional) – Whether to also report this user for spam.

Returns:

Updates – Updates on success.

Example

await app.block_from_replies(12345, delete_message=True)