peyk.platforms.telegram.methods.approve_suggested_post¶
- async peyk.platforms.telegram.methods.approve_suggested_post(self, chat_id: int, message_id: int, *, send_date: int | None = None) bool¶
Use this method to approve a suggested post in a direct messages chat. The bot must have the ‘can_post_messages’ administrator right in the corresponding channel chat. Returns True on success.
- Parameters:
chat_id – Unique identifier for the target direct messages chat
message_id – Identifier of a suggested post message to approve
send_date – Point in time (Unix timestamp) 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:
Result returned by Telegram on successful execution.
- Return type:
bool