Interface AddOffer

Sent a suggested post based on a previously sent message in a channel direct messages chat. Can be also used to suggest price or time change for an existing suggested post. Returns the sent message. Request type for Tdjson#addOffer.

interface AddOffer {
    @type: "addOffer";
    chat_id: number;
    message_id: number;
    options: MessageSendOptions;
}

Properties

@type: "addOffer"
chat_id: number

Identifier of the channel direct messages chat.

message_id: number

Identifier of the message in the chat which will be sent as suggested post. Use messageProperties.can_add_offer to check whether an offer can be added or messageProperties.can_edit_suggested_post_info to check whether price or time of sending of the post can be changed.

Options to be used to send the message. New information about the suggested post must always be specified.