approve_suggested_post()

Client.approve_suggested_post()

Use this method to approve a suggested post in a direct messages chat.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • message_id (int) – Identifier of a suggested post message to approve.

  • send_date (datetime, optional) – Date when the post is expected to be published. Omit if the date has already been specified when the suggested post was created. If specified, then the date must be not more than 2678400 seconds (30 days) in the future.

Returns:

bool – True on success.

Example

await app.approve_suggested_post(chat_id, message_id, send_date)