{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "tencentcloud-octop-gateway--bind-qq-bot-by-qr-code",
 "repo": "TencentCloud/octop-gateway",
 "repo_url": "https://github.com/TencentCloud/octop-gateway",
 "repo_slug": "tencentcloud-octop-gateway",
 "title": "Create QQ Bot credentials by scanning a QR code",
 "page_title": "How to create QQ Bot credentials by scanning a QR code with Octop Gateway",
 "summary": "Use QQBotQRLogin to get QQ Bot credentials without copying an AppID and AppSecret by hand.",
 "who": "A developer setting up a QQ Bot for a project who wants to avoid copying secrets manually.",
 "problem": "Copying AppID and AppSecret from a console is error-prone and exposes secrets in more places than needed.",
 "outcome": "A QQ channel config built from QR-confirmed credentials, ready to attach to a ChannelManager.",
 "steps": [
  "Run `pip install octop-gateway` in a Python 3.12+ environment.",
  "Call QQBotQRLogin(source=\"octop\") and then fetch_qr_code() to get a qrcode_url.",
  "Render the qrcode_url as a QR code in your UI or terminal and wait for confirmation with wait_for_login(qr.task_id).",
  "If result.connected is true, build the config with QQConfig.from_qr_credentials(result.credentials[0]).",
  "Store the returned channel config yourself, since the README says persistence is the caller's responsibility."
 ],
 "agent_prompt": "In the TencentCloud/octop-gateway repo, run the QQ Bot QR binding flow with QQBotQRLogin, print the qrcode_url for <user>, and wait for confirmation. Expected output: a QQConfig object built from result.credentials[0] and saved to <config store>. Verify that result.connected is true before building the config.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The one-time decryption key is kept only in memory and discarded after success, expiry, cancellation, or timeout, so a failed run means restarting the QR flow.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.12+",
  "Credentials for each platform you connect, such as a Telegram bot token, Feishu app ID and secret, or a Discord bot token",
  "Access to the developer portal of each platform you use",
  "A processor function that reads InboundMessage and yields MessageEvent objects"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The QR flow returns live QQ Bot credentials, so the saved config must be stored in a secret store with restricted access."
  }
 ],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/tencentcloud-octop-gateway/bind-qq-bot-by-qr-code/",
 "md": "https://dedupedai.com/use-cases/tencentcloud-octop-gateway/bind-qq-bot-by-qr-code/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/tencentcloud-octop-gateway--bind-qq-bot-by-qr-code.json",
 "api_version": "v1"
}
