declineSuggestedPost
Returns boolean ↗
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.
Required: chat_id, message_id · Optional: 1 parameters
Limits:
- comment: 0-128 characters
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("decline_suggested_post", { chat_id: "YOUR_CHAT_ID", message_id: 0})Parameters
chat_id number Required
Unique identifier for the target direct messages chat.
message_id number Required
Identifier of a suggested post message to decline.
comment string
Comment for the creator of the suggested post; 0-128 characters.