add_offer


Description:

public async Message add_offer (int64 chat_id, int64 message_id, MessageSendOptions options) throws TDLibError

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

Parameters:

chat_id

Identifier of the channel direct messages chat

message_id

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

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