{"id":3174,"date":"2022-03-11T10:19:38","date_gmt":"2022-03-11T16:19:38","guid":{"rendered":"https:\/\/www.mysmartbots.com\/blog\/?p=3174"},"modified":"2022-03-11T10:19:38","modified_gmt":"2022-03-11T16:19:38","slug":"new-simple-groups-api","status":"publish","type":"post","link":"https:\/\/www.mysmartbots.com\/blog\/2022\/03\/new-simple-groups-api\/","title":{"rendered":"New Simple Groups API"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignright size-full wp-image-2735\" src=\"https:\/\/www.mysmartbots.com\/blog\/wp-content\/smartbots\/2019\/10\/20191014-http-API-update.jpg\" alt=\"\" width=\"250\" height=\"200\" \/>We added new API calls to allow managing groups without a personal bot.<\/p>\n<blockquote><p><em>SmartBots allows\u00a0managing\u00a0groups by\u00a0&#8220;system&#8221; bots. Such\u00a0groups run on a bot provided by SmartBots (the advantages are a cheaper price and easier management).<\/em><\/p><\/blockquote>\n<p>As a beginning, two API calls have been added:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Simple_Groups_API\/send_group_im\" target=\"_blank\" rel=\"noopener noreferrer\">send_group_im<\/a> &#8211; the command to send a message to the group chat,<\/li>\n<li><a href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Simple_Groups_API\/set_http_callback\" target=\"_blank\" rel=\"noopener noreferrer\">set_http_callback<\/a> &#8211; the command\u00a0to set\u00a0HTTP callbacks and get them when something happens in a group.<\/li>\n<\/ul>\n<p>The currently available API calls are <a href=\"https:\/\/www.mysmartbots.com\/dev\/docs\/Simple_Groups_API\" target=\"_blank\" rel=\"noopener noreferrer\">listed here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We added new API calls to allow managing groups without a personal bot. SmartBots allows\u00a0managing\u00a0groups by\u00a0&#8220;system&#8221; bots. Such\u00a0groups run on a bot provided by SmartBots (the advantages are a cheaper price and easier management). As a beginning, two API calls have been added: send_group_im &#8211; the command to send a message to the group chat, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[146,73],"tags":[145,88,211,366],"_links":{"self":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3174"}],"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=3174"}],"version-history":[{"count":2,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3174\/revisions"}],"predecessor-version":[{"id":3176,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/posts\/3174\/revisions\/3176"}],"wp:attachment":[{"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/media?parent=3174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/categories?post=3174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mysmartbots.com\/blog\/wp-json\/wp\/v2\/tags?post=3174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}