getBusinessConnection()
Use this method to get information about the connection of the bot with a business account. Returns a BusinessConnection object on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
business_connection_id | string | required | Unique identifier of the business connection |
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 { BusinessConnection, GetBusinessConnectionParams } from "@yaebal/types";
await bot.api.call<BusinessConnection>("getBusinessConnection", {
business_connection_id: "...",
} satisfies GetBusinessConnectionParams);official Bot API docs: https://core.telegram.org/bots/api/#getbusinessconnection