{"id":3272,"date":"2023-06-23T14:03:00","date_gmt":"2023-06-23T19:03:00","guid":{"rendered":"https:\/\/www.mysmartbots.com\/blog\/?p=3272"},"modified":"2023-06-23T09:05:58","modified_gmt":"2023-06-23T14:05:58","slug":"typing-notification-new-http-api-and-playground-command","status":"publish","type":"post","link":"https:\/\/www.mysmartbots.com\/blog\/2023\/06\/typing-notification-new-http-api-and-playground-command\/","title":{"rendered":"Typing Notification: new HTTP API and Playground command"},"content":{"rendered":"<p><img loading=\"lazy\" width=\"250\" height=\"200\" class=\"alignright wp-image-2735\" src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2019\/10\/20191014-http-API-update.jpg\" alt=\"\" \/><\/p>\n\n\n<p>We added two new commands that allow you to control the typing notifications sent by your bot to other residents:<\/p>\n\n\n\n<ul><li><a rel=\"noreferrer noopener\" href=\"\/dev\/docs\/HTTP_API\/Bot_Commands\/typing_start\" target=\"_blank\">typing_start<\/a> (uuid, [keep-typing-delay])<\/li><li><a href=\"\/dev\/docs\/HTTP_API\/Bot_Commands\/typing_stop\" data-type=\"URL\" data-id=\"\/dev\/docs\/HTTP_API\/Bot_Commands\/typing_stop\">typing_stop<\/a> (uuid)<\/li><\/ul>\n\n\n\n<p>The same for Bot Playground:<\/p>\n\n\n\n<ul><li><a rel=\"noreferrer noopener\" href=\"\/dev\/docs\/Bot_Playground\/Commands\/startTyping\" data-type=\"URL\" data-id=\"\/dev\/docs\/Bot_Playground\/Commands\/startTyping\" target=\"_blank\">Bot.startTyping(uuid, delay?)<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"\/dev\/docs\/Bot_Playground\/Commands\/stopTyping\" data-type=\"URL\" data-id=\"\/dev\/docs\/Bot_Playground\/Commands\/stopTyping\" target=\"_blank\">Bot.stopTyping(uuid)<\/a><\/li><\/ul>\n\n\n\n<!--more-->\n\n\n\n<p>The first command displays &#8220;<em>Bot-Name<\/em> is typing&#8221; for specific resident, while the second command obviously stops the typing notification.<\/p>\n\n\n\n<h2>Using the keep-typing-delay<\/h2>\n\n\n\n<p>To prevent bot from occasionally indicating the &#8220;typing&#8221; status forever, the <em>delay<\/em> parameter can be used. It defaults to 15 seconds, but you can extend or reduce this value.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We added two new commands that allow you to control the typing notifications sent by your bot to other residents: typing_start (uuid, [keep-typing-delay]) typing_stop (uuid) The same for Bot Playground: Bot.startTyping(uuid, delay?) Bot.stopTyping(uuid)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[359,144,146],"tags":[145,441,366,567],"_links":{"self":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3272"}],"collection":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/comments?post=3272"}],"version-history":[{"count":3,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3272\/revisions"}],"predecessor-version":[{"id":3275,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3272\/revisions\/3275"}],"wp:attachment":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/media?parent=3272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/categories?post=3272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/tags?post=3272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}