Title: Add support for tracking conversations · Issue #53 · python-botogram/botogram · GitHub
Open Graph Title: Add support for tracking conversations · Issue #53 · python-botogram/botogram
X Title: Add support for tracking conversations · Issue #53 · python-botogram/botogram
Description: Conversation tracking is the way I plan to implement a proper support for keyboards (as a layer above those) and forced replies. @bot.command("support") def support_command(conversation, chat, message, args): """Ask for support""" conver...
Open Graph Description: Conversation tracking is the way I plan to implement a proper support for keyboards (as a layer above those) and forced replies. @bot.command("support") def support_command(conversation, chat, mess...
X Description: Conversation tracking is the way I plan to implement a proper support for keyboards (as a layer above those) and forced replies. @bot.command("support") def support_command(conversation, ...
Opengraph URL: https://github.com/python-botogram/botogram/issues/53
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for tracking conversations","articleBody":"Conversation tracking is the way I plan to implement a proper support for keyboards (as a layer above those) and forced replies.\n\n``` python\n@bot.command(\"support\")\ndef support_command(conversation, chat, message, args):\n \"\"\"Ask for support\"\"\"\n conversation.start(\"support\")\n chat.send(\"Hey, what's your problem?\", attach=conversation)\n\n@bot.conversation(\"support\")\ndef bug_report_conversation(conversation, chat, message):\n # First step is asking the user which problem he has\n if \"problem\" not in conversation.data:\n conversation.data[\"problem\"] = message.text\n chat.send(\"OK! To which email address do you wish being contacted?\",\n attach=conversation)\n else:\n problem = conversation.data[\"problem\"]\n email = message.text\n mydb.add_ticket(problem, email)\n\n chat.send(\"Thank you for contacting our support!\")\n conversation.end()\n```\n\nLet's break this down:\n- The `/support` command starts the `support` conversation: from this moment and until you close the conversation (or it times out) every message which is detected as part of the conversation will be routed to the relative function\n- The conversation is attached (the equivalent of the current `extra` argument) to the message you send to the user, and this acts as a Telegram ForceReply\n- Every message the user sends now is routed to the conversation function, so you can interact with your user more easily\n- Conversations have a dedicated shared memory, unique for every conversation, so you can store any information the user sent to you (it will be deleted after you end the conversation)\n- After you did what you want with the user, you can `.end()` the conversation.\n\nI think conversations will aid you creating even more awesome bots, but if you have any idea please share it here!\n","author":{"url":"https://github.com/emilyalbini","@type":"Person","name":"emilyalbini"},"datePublished":"2016-04-08T17:28:06Z","url":"https://github.com/python-botogram/botogram/issues/53"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3dc6804d-ce49-4bbe-2c5a-7a9ee65736a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D63E:DD884:ECA91C:14EE158:6AEC7DA6 |
| html-safe-nonce | 188b538b84eeb25187fd9a2269df8e85bbb49f60c10546d9375723343a964595 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjNFOkREODg0OkVDQTkxQzoxNEVFMTU4OjZBRUM3REE2IiwidmlzaXRvcl9pZCI6IjUyMjM3Nzc1MjkxNTQ1MzQ4MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b1e5b80ff2d13151c4247fe4157f4724b93590382a8477e4fb029f508b501c69 |
| hovercard-subject-tag | issue:146989171 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-botogram/botogram/53/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6b21bd5cc7f23c8b48c79f27dc60fff62a3807251edf666c30ad0109abfd3271/python-botogram/botogram/issues/53 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6b21bd5cc7f23c8b48c79f27dc60fff62a3807251edf666c30ad0109abfd3271/python-botogram/botogram/issues/53 |
| og:image:alt | Conversation tracking is the way I plan to implement a proper support for keyboards (as a layer above those) and forced replies. @bot.command("support") def support_command(conversation, chat, mess... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | emilyalbini |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2bdf579c3278a003eb7fd86a77e2ed31e813bf4e18e5958458d2bdc3941566b0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-botogram/botogram git https://github.com/python-botogram/botogram.git |
| octolytics-dimension-user_id | 38258752 |
| octolytics-dimension-user_login | python-botogram |
| octolytics-dimension-repository_id | 38007898 |
| octolytics-dimension-repository_nwo | python-botogram/botogram |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38007898 |
| octolytics-dimension-repository_network_root_nwo | python-botogram/botogram |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 22d3a69d3307500eb5a7909970fc0d9a7735cb70 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width