{"id":155358,"date":"2022-04-13T12:35:57","date_gmt":"2022-04-13T12:35:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/bot-master\/"},"modified":"2022-09-27T15:59:27","modified_gmt":"2022-09-27T15:59:27","slug":"bots-master","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/bots-master\/","author":8484297,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.1","tested":"6.0.11","requires":"4.9","requires_php":"7.2","requires_plugins":"","header_name":"Telegram Bot Master","header_author":"Pavlo M. <webxid@ukr.net>","header_description":"The plugin helps to send a message to a Telegram Bot subscribers","assets_banners_color":"d2e294","last_updated":"2022-09-27 15:59:27","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/bit.ly\/3JSMitJ","header_plugin_uri":"https:\/\/github.com\/bots-master\/wp-bots-master","header_author_uri":"https:\/\/github.com\/webxid","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2425,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"webxid","date":"2022-05-05 12:15:52"},"1.0.1":{"tag":"1.0.1","author":"webxid","date":"2022-09-27 15:59:27"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2718590,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2718590,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2718590,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2718590,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2718590,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2718590,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2718590,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"<code>Bot Master &gt; Bot Settings<\/code> page","2":"<code>Bot Master &gt; Channels<\/code> page","3":"<code>Bot Master &gt; Send Message<\/code> page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2359,2522,2512,131121,9171],"plugin_category":[41],"plugin_contributors":[209455],"plugin_business_model":[],"class_list":["post-155358","plugin","type-plugin","status-closed","hentry","plugin_tags-bot","plugin_tags-mailing","plugin_tags-messaging","plugin_tags-responder","plugin_tags-telegram","plugin_category-communication","plugin_contributors-webxid","plugin_committers-webxid"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/bots-master_d2e294.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/bots-master\/assets\/screenshot-1.png?rev=2718590","caption":"<code>Bot Master &gt; Bot Settings<\/code> page"},{"src":"https:\/\/ps.w.org\/bots-master\/assets\/screenshot-2.png?rev=2718590","caption":"<code>Bot Master &gt; Channels<\/code> page"},{"src":"https:\/\/ps.w.org\/bots-master\/assets\/screenshot-3.png?rev=2718590","caption":"<code>Bot Master &gt; Send Message<\/code> page"}],"raw_content":"<!--section=description-->\n<p>GitHub project: <a href=\"https:\/\/github.com\/bots-master\/wp-bots-master\">https:\/\/github.com\/bots-master\/wp-bots-master<\/a><\/p>\n\n<p><strong>The features list<\/strong>\n- Telegram Bot integration\n- Send a message to all Telegram Bot's Subscribers\n- Send a message to Telegram Group Chat\n- Post a message in Telegram Channel<\/p>\n\n<p><strong>Requirements<\/strong><\/p>\n\n<p>PHP version 7.2 or later<\/p>\n\n<h3>Uninstall The Plugin<\/h3>\n\n<p>To uninstall the plugin permanently, follow the next steps:\n1. Drop the DB table <em>wx_bot_users<\/em>:<\/p>\n\n<p>SQL Query: <code>DROP TABLE IF EXISTS wx_bot_users;<\/code><\/p>\n\n<ol>\n<li><p>Remove WP Options:<\/p>\n\n<p>delete_option('telegram_api_token');\ndelete_option('welcome_message');\ndelete_option('unknown_message');<\/p><\/li>\n<\/ol>\n\n<p>Done! Now, there is no data of the plugin in DB<\/p>\n\n<h3>How To Use<\/h3>\n\n<h3>Collect Subscribers<\/h3>\n\n<p>!!! IMPORTANT !!!\nIf a user was subscribed to a bot before the bot installing, it will not works.\nThe plugin does not able to grab your bot's old subscribers from the Telegram side.<\/p>\n\n<p>So, you are able to message users after the next steps\n1. Set a Telegram Bot API Token in WP Admin\n2. A user subscribe to the bot (send any message or click any button)<\/p>\n\n<p>Now, you are able to message the subscriber.<\/p>\n\n<h3>Group Chat \/ Channel<\/h3>\n\n<p><strong>Add Group Chat \/ Channel to The Chatbot<\/strong><\/p>\n\n<ol>\n<li>Go to the Telegram and create public a Group Chat or a Channel (Chat)<\/li>\n<li>Add your Bot to the Chat. It has to be able to post a message.<\/li>\n<li>Copy the Chat <code>username<\/code><\/li>\n<li>Go to <code>Bot Master &gt; Channels<\/code> and add the username here<\/li>\n<\/ol>\n\n<p>Now, your bot will posts a message to the Chat, you send at <code>Bot Master &gt; Send Message<\/code><\/p>\n\n<h3>Code Usage<\/h3>\n\n<pre><code>use WebXID\\BotsMaster\\ChatBot;\nuse WebXID\\BotsMaster\\ChatBot\\BotUser;\n\nBotUser::find(['type_id' =&gt; ChatBot\\BotUser::TYPE_CHAT]); \/\/ returns all Group Chats and Channels list\nBotUser::find(['type_id' =&gt; ChatBot\\BotUser::TYPE_USER]); \/\/ returns all subscribers\n\nBotUser::all(); \/\/ returns all records\n\n\/\/ -------------------------\n\n$bot_user = BotUser::findOne(['type_id' =&gt; ChatBot\\BotUser::TYPE_USER]);\n\nif ($bot_user) {\n    ChatBot::factory($bot_user)\n        -&gt;sendMessage('&lt;b&gt;Hello&lt;\/b&gt; world!'); \/\/ will send the message, if the plugin installed correctly\n}\n<\/code><\/pre>\n\n<p>Please, check the Doc <a href=\"https:\/\/core.telegram.org\/bots\/api#html-style\">https:\/\/core.telegram.org\/bots\/api#html-style<\/a> to get allowed HTML tags<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download and unzip the plugin into <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin in your wordpress admin panel<\/li>\n<li>Go to <code>Bot Master &gt; Bot Settings<\/code> page<\/li>\n<li>Set your Telegram Bot API Token<\/li>\n<\/ol>\n\n<p>Done!<\/p>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>The last WP version Checked<\/li>\n<li>Removed uninstall logic - so, if you deactivate then activate the plugin, the all data will be available as before the deactivation<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial<\/li>\n<\/ul>","raw_excerpt":"The plugin helps to send a message to a Telegram Bot subscribers","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/155358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=155358"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/webxid"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=155358"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=155358"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=155358"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=155358"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=155358"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=155358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}