Package org.drinkless.tdlib
Class TdApi.DeclineSuggestedPost
- Enclosing class:
- TdApi
Declines a suggested post in a channel direct messages chat.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Chat identifier of the channel direct messages chat.Comment for the creator of the suggested post; 0-128 characters.static final int
Identifier uniquely determining type of the object.long
Identifier of the message with the suggested post. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which declines a suggested post in a channel direct messages chat.DeclineSuggestedPost
(long chatId, long messageId, String comment) Creates a function, which declines a suggested post 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 chatIdChat identifier of the channel direct messages chat. -
messageId
public long messageIdIdentifier of the message with the suggested post. Use messageProperties.canBeDeclined to check whether the suggested post can be declined. -
comment
Comment for the creator of the suggested post; 0-128 characters. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
DeclineSuggestedPost
public DeclineSuggestedPost()Default constructor for a function, which declines a suggested post in a channel direct messages chat.Returns
Ok
-
DeclineSuggestedPost
Creates a function, which declines a suggested post in a channel direct messages chat.Returns
Ok
- Parameters:
chatId
- Chat identifier of the channel direct messages chat.messageId
- Identifier of the message with the suggested post. Use messageProperties.canBeDeclined to check whether the suggested post can be declined.comment
- Comment for the creator of the suggested post; 0-128 characters.
-
-
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
-