Package org.drinkless.tdlib
Class TdApi.AddOffer
- Enclosing class:
- TdApi
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.
Returns Message
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Identifier of the channel direct messages chat.static final int
Identifier uniquely determining type of the object.long
Identifier of the message in the chat which will be sent as suggested post.Options to be used to send the message. -
Constructor Summary
ConstructorsConstructorDescriptionAddOffer()
Default constructor for a function, which sent a suggested post based on a previously sent message in a channel direct messages chat.AddOffer
(long chatId, long messageId, TdApi.MessageSendOptions options) Creates a function, which sent a suggested post based on a previously sent message in a channel direct messages chat. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the channel direct messages chat. -
messageId
public long messageIdIdentifier of the message in the chat which will be sent as suggested post. Use messageProperties.canAddOffer to check whether an offer can be added or messageProperties.canEditSuggestedPostInfo 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AddOffer
public AddOffer()Default constructor for a function, which 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.Returns
Message
-
AddOffer
Creates a function, which 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.Returns
Message
- Parameters:
chatId
- Identifier of the channel direct messages chat.messageId
- Identifier of the message in the chat which will be sent as suggested post. Use messageProperties.canAddOffer to check whether an offer can be added or messageProperties.canEditSuggestedPostInfo 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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-