Skip to content

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

Class: InputPollOption ​

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

This object contains information about one answer option in a poll to send.

Documentation

Constructors ​

Constructor ​

new InputPollOption(payload): InputPollOption

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

Parameters ​

ParameterType
payloadTelegramInputPollOption

Returns ​

InputPollOption

Properties ​

PropertyTypeDefined in
payloadTelegramInputPollOptioncontexts/index.d.ts:4658

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string


text ​

Get Signature ​

get text(): string | { toString: string; }

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

Option text, 1-100 characters

Returns ​

string | { toString: string; }


textEntities ​

Get Signature ​

get textEntities(): TelegramMessageEntity[]

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

Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode

Returns ​

TelegramMessageEntity[]


textParseMode ​

Get Signature ​

get textParseMode(): "HTML" | "MarkdownV2" | "Markdown"

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

Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed

Returns ​

"HTML" | "MarkdownV2" | "Markdown"