Skip to content

GramIO API Reference / @gramio/contexts/dist / PollOptionAdded

Class: PollOptionAdded

Defined in: contexts/index.d.ts:2780

Describes a service message about an option added to a poll.

Documentation

Constructors

Constructor

new PollOptionAdded(payload): PollOptionAdded

Defined in: contexts/index.d.ts:2782

Parameters

ParameterType
payloadTelegramPollOptionAdded

Returns

PollOptionAdded

Properties

PropertyTypeDefined in
payloadTelegramPollOptionAddedcontexts/index.d.ts:2781

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:2784

MDN

Returns

string


optionPersistentId

Get Signature

get optionPersistentId(): string

Defined in: contexts/index.d.ts:2790

Unique identifier of the added option

Returns

string


optionText

Get Signature

get optionText(): string

Defined in: contexts/index.d.ts:2792

Option text

Returns

string


optionTextEntities

Get Signature

get optionTextEntities(): MessageEntity[]

Defined in: contexts/index.d.ts:2794

Optional. Special entities that appear in the optionText

Returns

MessageEntity[]


pollMessage

Get Signature

get pollMessage(): Omit<Message, "replyMessage"> | InaccessibleMessage

Defined in: contexts/index.d.ts:2788

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