editMessageChecklistПоддерживается
Use this method to edit a checklist on behalf of a connected business account. On success, the edited Message is returned.
Особенности StaticGram
completions of kept tasks preserved; business_connection_id: only messages this bot sent for the account
Параметры
Unique identifier of the business connection on behalf of which the message will be sent
Unique identifier for the target chat or username of the target bot in the format
@usernameUnique identifier for the target message
A JSON-serialized object for the new checklist
A JSON-serialized object for the new inline keyboard for the message
Пример запроса
curl
curl "https://api.staticgram.top/bot$TOKEN/editMessageChecklist" \
-H "Content-Type: application/json" \
-d '{
"business_connection_id": "<business_connection_id>",
"chat_id": 123456789,
"message_id": 42,
"checklist": {}
}'aiogram 3
from aiogram import Bot
from aiogram.client.session.aiohttp import AiohttpSession
from aiogram.client.telegram import TelegramAPIServer
session = AiohttpSession(api=TelegramAPIServer.from_base("https://api.staticgram.top"))
bot = Bot(TOKEN, session=session)
result = await bot.edit_message_checklist(
business_connection_id="<business_connection_id>",
chat_id=123456789,
message_id=42,
checklist={},
)JavaScript
const res = await fetch(`https://api.staticgram.top/bot${TOKEN}/editMessageChecklist`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"business_connection_id": "<business_connection_id>",
"chat_id": 123456789,
"message_id": 42,
"checklist": {}
}),
});
const data = await res.json();Ответ (Message)
JSON
{
"ok": true,
"result": {
"message_id": 1,
"date": 1790000000,
"chat": {
"id": 1780243423,
"type": "private"
}
}
}