Class TdApi.StopPoll
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.StopPoll
- Enclosing class:
- TdApi
Stops a poll.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat to which the poll belongs.static final int
Identifier uniquely determining type of the object.long
Identifier of the message containing the poll.The new message reply markup; pass null if none; for bots only. -
Constructor Summary
ConstructorDescriptionStopPoll()
Default constructor for a function, which stops a poll.StopPoll
(long chatId, long messageId, TdApi.ReplyMarkup replyMarkup) Creates a function, which stops a poll. -
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
-
chatId
public long chatIdIdentifier of the chat to which the poll belongs. -
messageId
public long messageIdIdentifier of the message containing the poll. Use messageProperties.canBeEdited to check whether the poll can be stopped. -
replyMarkup
The new message reply markup; pass null if none; for bots only. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
StopPoll
public StopPoll()Default constructor for a function, which stops a poll.Returns
Ok
-
StopPoll
Creates a function, which stops a poll.Returns
Ok
- Parameters:
chatId
- Identifier of the chat to which the poll belongs.messageId
- Identifier of the message containing the poll. Use messageProperties.canBeEdited to check whether the poll can be stopped.replyMarkup
- The new message reply markup; pass null if none; for bots only.
-
-
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
-