contacts.BlockFromReplies

class pyrogram.raw.functions.contacts.BlockFromReplies

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

Details:
  • Layer: 223

  • ID: 29A8962C

Parameters:
  • msg_id (int 32-bit) – 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

TL Schema

contacts.blockFromReplies#29a8962c
flags:#
delete_message:flags.0?true
delete_history:flags.1?true
report_spam:flags.2?true
msg_id:int

= Updates

Parameter Tree

BlockFromReplies
├── delete_messagetrue (optional)
├── delete_historytrue (optional)
├── report_spamtrue (optional)
└── msg_idint

Example

await app.invoke(
    BlockFromReplies(
        delete_message=None,
        delete_history=None,
        report_spam=None,
        msg_id=0,
    )
)