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.
Constructors
Constructor
new InputPollOption(
payload):InputPollOption
Defined in: contexts/index.d.ts:4198
Parameters
| Parameter | Type |
|---|---|
payload | TelegramInputPollOption |
Returns
InputPollOption
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramInputPollOption | contexts/index.d.ts:4197 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:4200
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
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"