RichBlockListItem
An item of a list.
fields
| field | type | required | description |
|---|---|---|---|
label | string | required | Label of the item |
blocks | RichBlock[] | required | The content of the item |
has_checkbox | boolean | optional | Optional. True, if the item has a checkbox |
is_checked | boolean | optional | Optional. True, if the item has a checked checkbox |
value | number | optional | Optional. For ordered lists, the numeric value of the item label |
type | "a" | "A" | "i" | "I" | optional | Optional. For ordered lists, the type of the item label; must be one of “a” for lowercase letters, “A” for uppercase letters, “i” for lowercase Roman numerals, “I” for uppercase Roman numerals, or “1” for decimal numbers |
import
import type { RichBlockListItem } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#richblocklistitem