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 TypeFieldDescriptionlongChat identifier of the channel direct messages chat.Comment for the creator of the suggested post; 0-128 characters.static final intIdentifier uniquely determining type of the object.longIdentifier 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 TypeMethodDescriptionintReturns 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-