editMessageChecklist()
Use this method to edit a checklist on behalf of a connected business account. On success, the edited Message is returned.
parameters
| parameter | type | required | description |
|---|---|---|---|
business_connection_id | string | required | Unique identifier of the business connection on behalf of which the message will be sent |
chat_id | number | string | required | Unique identifier for the target chat or username of the target bot in the format @username |
message_id | number | required | Unique identifier for the target message |
checklist | InputChecklist | required | A JSON-serialized object for the new checklist |
reply_markup | InlineKeyboardMarkup | optional | A JSON-serialized object for the new inline keyboard for the message |
returns
usage in yaebal
not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.
import type { EditMessageChecklistParams, Message } from "@yaebal/types";
await bot.api.call<Message>("editMessageChecklist", {
business_connection_id: "...",
chat_id: 123456789,
message_id: 1,
checklist: {} /* InputChecklist */,
} satisfies EditMessageChecklistParams);context shortcut
also available as ctx.editMessageChecklist() on
10
context types — see @yaebal/contexts.
/** Use this method to edit a checklist on behalf of a connected business account. On success, the edited [Message](https://core.telegram.org/bots/api/#message) is returned. */
ctx.editMessageChecklist(params: Omit<EditMessageChecklistParams, "chat_id" | "message_id">)official Bot API docs: https://core.telegram.org/bots/api/#editmessagechecklist