Telegram Bot API

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.

post/declineSuggestedPost

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/declineSuggestedPost
  • Auth: none declared

Request body

chat_idinteger required

Unique identifier for the target direct messages chat

message_idinteger required

Identifier of a suggested post message to decline

commentstring

Comment for the creator of the suggested post; 0-128 characters

Response

Telegram API response

oktrue required
resulttrue required

Changes

No recorded changes to this operation across all 3 revisions of this API.