messages.ToggleSuggestedPostApproval#

class pyrogram.raw.functions.messages.ToggleSuggestedPostApproval#

Approve or reject a suggested post .

Details:
  • Layer: 220

  • ID: 8107455C

Parameters:
  • peer (InputPeer) – Both for users and channels, must contain the ID of the direct messages monoforum » (for channels, the topic ID is extracted automatically from the msg_id).

  • msg_id (int 32-bit) – ID of the suggestion message.

  • reject (bool, optional) – Reject the suggested post.

  • schedule_date (int 32-bit, optional) – Custom scheduling date.

  • reject_comment (str, optional) – Optional comment for rejections (can only be used if reject is set).

Returns:

Updates