GramIO API Reference / @gramio/contexts/dist / PollOptionAdded
Class: PollOptionAdded
Defined in: contexts/index.d.ts:2518
Describes a service message about an option added to a poll.
Constructors
Constructor
new PollOptionAdded(
payload):PollOptionAdded
Defined in: contexts/index.d.ts:2520
Parameters
| Parameter | Type |
|---|---|
payload | TelegramPollOptionAdded |
Returns
PollOptionAdded
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramPollOptionAdded | contexts/index.d.ts:2519 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2522
Returns
string
optionPersistentId
Get Signature
get optionPersistentId():
string
Defined in: contexts/index.d.ts:2528
Unique identifier of the added option
Returns
string
optionText
Get Signature
get optionText():
string
Defined in: contexts/index.d.ts:2530
Option text
Returns
string
optionTextEntities
Get Signature
get optionTextEntities():
MessageEntity[]
Defined in: contexts/index.d.ts:2532
Optional. Special entities that appear in the optionText
Returns
pollMessage
Get Signature
get pollMessage():
Omit<Message,"replyMessage"> |InaccessibleMessage
Defined in: contexts/index.d.ts:2526
Optional. Message containing the poll to which the option was added, 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