Class TdApi.ReaddQuickReplyShortcutMessages
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.QuickReplyMessages>
dev.voroby.springframework.telegram.client.TdApi.ReaddQuickReplyShortcutMessages
- Enclosing class:
- TdApi
public static class TdApi.ReaddQuickReplyShortcutMessages
extends TdApi.Function<TdApi.QuickReplyMessages>
Readds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.canRetry is true and after specified in messageSendingStateFailed.retryAfter time passed. If a message is readded, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in messageIds. If a message can't be readded, null will be returned instead of the message.
Returns QuickReplyMessages
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.long[]
Identifiers of the quick reply messages to readd.Name of the target shortcut. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which readds quick reply messages which failed to add.ReaddQuickReplyShortcutMessages
(String shortcutName, long[] messageIds) Creates a function, which readds quick reply messages which failed to add. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
shortcutName
Name of the target shortcut. -
messageIds
public long[] messageIdsIdentifiers of the quick reply messages to readd. Message identifiers must be in a strictly increasing order. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ReaddQuickReplyShortcutMessages
public ReaddQuickReplyShortcutMessages()Default constructor for a function, which readds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.canRetry is true and after specified in messageSendingStateFailed.retryAfter time passed. If a message is readded, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in messageIds. If a message can't be readded, null will be returned instead of the message.Returns
QuickReplyMessages
-
ReaddQuickReplyShortcutMessages
Creates a function, which readds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.canRetry is true and after specified in messageSendingStateFailed.retryAfter time passed. If a message is readded, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in messageIds. If a message can't be readded, null will be returned instead of the message.Returns
QuickReplyMessages
- Parameters:
shortcutName
- Name of the target shortcut.messageIds
- Identifiers of the quick reply messages to readd. Message identifiers must be in a strictly increasing order.
-
-
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
-