{"service":"BiNuke Telegram API","moduleVersion":"1.3.2","apiExtension":"licensed-multibot-v2","encoding":"JSON UTF-8; botId, userId and chatId are strings","htmlDocumentation":"api.php?mode=TGApiHelp","botSelection":{"requestField":"botid","idKind":"real Telegram Bot API getMe.result.id (string), never the BiNuke database row ID","oneBot":"omit botid","severalBots":"bot_id_required with availableBots; repeat request with botid","discovery":"TGAccounts","unauthorized":"bot_not_allowed"},"licensePolicy":{"-2":"forbidden","0":"standard bot only (no cache access)","-1":"may register own bot",">0":"legacy primary bot plus additional grants"},"cacheSource":{"TGChats":"binuketgchats","TGChatInfo":"binuketgchats","TGChatTopics":"binuketgchatsttopics verified via binuketgchats","TGUsers":"binuketgusers","TGUserInfo":"binuketgusers","TGOutgoingRecent":"binuketg scoped by license and bot"},"modes":["TGApiHelp","TGApiInfo","TGProxyConfig","TGAccounts","TGConnectionStatus","TGSend","TGList","TGgetChat","TGIncomingRecent","TGWebhookEnsure","TGAccountCreate","TGChats","TGChatInfo","TGChatTopics","TGUsers","TGUserInfo","TGOutgoingRecent","TGWebhookStatus"],"params":{"common":["mode","license","botid? (Telegram ID, only required for multiple licensed bots)"],"TGAccounts":[],"TGChats":["page?","limit?"],"TGChatInfo":["chatid"],"TGChatTopics":["chatid","page?","limit?"],"TGUsers":["page?","limit?"],"TGUserInfo":["userid"],"TGOutgoingRecent":["page?","limit?"],"TGWebhookStatus":[],"TGSend":["to","body?","filename?","fileBase64?","topicid?","serviceid?"],"TGgetChat":["chatid"],"TGIncomingRecent":["limit?"],"TGAccountCreate":["name","token"]},"pagination":{"page":"1..1000","limit":"1..100","hasMore":"bool"},"sendAddressing":{"botid":"real Telegram bot ID; optional for a single licensed bot","to":"Telegram chat_id","topicid":"optional positive message_thread_id; targets a topic inside chat to; supports text\/photo\/document","serviceid":"optional external project branch\/department\/account integer; defaults to 0; stored in outgoing log ONLY, not sent to Telegram","fieldNames":"case-sensitive lowercase: topicid, serviceid, botid"},"errors":["bot_id_required","bot_not_allowed","invalid_botid","invalid_topicid","dedicated_bot_required","bot_identity_unavailable","bot_identity_conflict","telegram_forbidden"],"notes":["Internal account IDs and bot tokens are never returned to clients.","TGSend.topicid maps to Telegram message_thread_id in the target chat; TGSend.serviceid is an optional external project subdivision ID for outgoing logging only, never the topic ID.","Older tgaccid grants work without migration; extra grants live in binuketglicensebots.","A license may create its own bot when explicitly permitted; old assignments remain.","Users cache includes only new webhook events with known bot ID; old journal is not reprocessed.","TGBack is internal webhook, not client API."]}