peyk.platforms.telegram.methods.decline_suggested_post¶
- async peyk.platforms.telegram.methods.decline_suggested_post(self, chat_id: int, message_id: int, *, comment: str | None = None) bool¶
Use this method to decline a suggested post in a direct messages chat. The bot must have the ‘can_manage_direct_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 decline
comment – Comment for the creator of the suggested post; 0-128 characters
- Returns:
Result returned by Telegram on successful execution.
- Return type:
bool