Skip to content

approveSuggestedPost

Function · TDLib 1.8.67 · d1085f9c

Approves a suggested post in a channel direct messages chat

approveSuggestedPost(
  chat_id: int53,
  message_id: int53,
  send_date: int32
) → Ok

chat_id

int53

Chat identifier of the channel direct messages chat

message_id

int53

Identifier of the message with the suggested post. Use messageProperties.can_be_approved to check whether the suggested post can be approved

send_date

int32

Point in time (Unix timestamp) when the post is expected to be published; pass 0 if the date has already been chosen. If specified, then the date must be in the future, but at most getOption("suggested_post_send_delay_max") seconds in the future