Skip to content

approveSuggestedPost

Returns boolean

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.

Required: chat_id, message_id · Optional: 1 parameters

Try it
Token saved
Response

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("approve_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 approve.

send_date number
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.

approveChatJoinRequest