Skip to content

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

Class: InputPollOption

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

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:4198

Parameters

ParameterType
payloadTelegramInputPollOption

Returns

InputPollOption

Properties

PropertyTypeDefined in
payloadTelegramInputPollOptioncontexts/index.d.ts:4197

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string


text

Get Signature

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

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

Option text, 1-100 characters

Returns

string | { toString: string; }


textEntities

Get Signature

get textEntities(): TelegramMessageEntity[]

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

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:4210

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"