GramIO API Reference / @gramio/contexts/dist / PollOptionDeleted
Class: PollOptionDeleted
Defined in: contexts/index.d.ts:2802
Describes a service message about an option deleted from a poll.
Constructors
Constructor
new PollOptionDeleted(
payload):PollOptionDeleted
Defined in: contexts/index.d.ts:2804
Parameters
| Parameter | Type |
|---|---|
payload | TelegramPollOptionDeleted |
Returns
PollOptionDeleted
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramPollOptionDeleted | contexts/index.d.ts:2803 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2806
Returns
string
optionPersistentId
Get Signature
get optionPersistentId():
string
Defined in: contexts/index.d.ts:2812
Unique identifier of the deleted option
Returns
string
optionText
Get Signature
get optionText():
string
Defined in: contexts/index.d.ts:2814
Option text
Returns
string
optionTextEntities
Get Signature
get optionTextEntities():
MessageEntity[]
Defined in: contexts/index.d.ts:2816
Optional. Special entities that appear in the optionText
Returns
pollMessage
Get Signature
get pollMessage():
Omit<Message,"replyMessage"> |InaccessibleMessage
Defined in: contexts/index.d.ts:2810
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