GramIO API Reference / @gramio/contexts/dist / PollOptionDeleted
Class: PollOptionDeleted
Defined in: contexts/index.d.ts:2540
Describes a service message about an option deleted from a poll.
Constructors
Constructor
new PollOptionDeleted(
payload):PollOptionDeleted
Defined in: contexts/index.d.ts:2542
Parameters
| Parameter | Type |
|---|---|
payload | TelegramPollOptionDeleted |
Returns
PollOptionDeleted
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramPollOptionDeleted | contexts/index.d.ts:2541 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2544
Returns
string
optionPersistentId
Get Signature
get optionPersistentId():
string
Defined in: contexts/index.d.ts:2550
Unique identifier of the deleted option
Returns
string
optionText
Get Signature
get optionText():
string
Defined in: contexts/index.d.ts:2552
Option text
Returns
string
optionTextEntities
Get Signature
get optionTextEntities():
MessageEntity[]
Defined in: contexts/index.d.ts:2554
Optional. Special entities that appear in the optionText
Returns
pollMessage
Get Signature
get pollMessage():
Omit<Message,"replyMessage"> |InaccessibleMessage
Defined in: contexts/index.d.ts:2548
Optional. Message containing the poll from which the option was deleted, if known. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
Returns
Omit<Message, "replyMessage"> | InaccessibleMessage