readBusinessMessage
Returns boolean ↗
Marks incoming message as read on behalf of a business account. Requires the can_read_messages business bot right.
Required: business_connection_id, chat_id, message_id
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("read_business_message", { business_connection_id: "...", chat_id: "YOUR_CHAT_ID", message_id: 0})Parameters
business_connection_id string Required
Unique identifier of the business connection on behalf of which to read the message.
chat_id number Required
Unique identifier of the chat in which the message was received. The chat must have been active in the last 24 hours.
message_id number Required
Unique identifier of the message to mark as read.