Changeset 3200768
- Timestamp:
- 12/02/2024 09:54:31 AM (16 months ago)
- Location:
- site-chat-on-telegram/trunk
- Files:
-
- 3 edited
-
inc/ScotChat.php (modified) (1 diff)
-
nuxy_settings/main.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
site-chat-on-telegram/trunk/inc/ScotChat.php
r3200140 r3200768 130 130 ); 131 131 132 $user_messages = TgSupDB::getThreadMessages($thread_id); 133 if(count($user_messages) === 1){ 134 if(scot_get_option('enable_auto_reply', false)) { 135 $auto_reply_message = scot_get_option('auto_reply_message', ''); 136 $auto_reply_message_sent = $this->telegram->sendMessage(self::groupId(), $auto_reply_message, $thread_id); 137 TgSupDB::insert_message( 138 $auto_reply_message_sent['message_id'], 139 $thread_id, 140 $auto_reply_message, 141 wp_json_encode($auto_reply_message_sent), 142 $auto_reply_message_sent['from']['id'], 143 1, 144 $auto_reply_message_sent['date'], 145 'text', 146 ); 147 } 148 149 } 150 132 151 wp_send_json_success(); 133 152 } -
site-chat-on-telegram/trunk/nuxy_settings/main.php
r3200140 r3200768 101 101 'type' => 'image', 102 102 ], 103 'enable_auto_reply' => [ 104 'label' => esc_html__('Enable automatic reply to the first message', 'site-chat-on-telegram'), 105 'type' => 'checkbox', 106 ], 107 'auto_reply_message' => [ 108 'label' => esc_html__("Automatic reply message", 'site-chat-on-telegram'), 109 'type' => 'textarea', 110 'value' => esc_html__("Hi! It is an automated message. An available manager will get back to you shortly.", 'site-chat-on-telegram'), 111 'dependency' => [ 112 'key' => 'enable_auto_reply', 113 'value' => 'not_empty', 114 ], 115 ], 103 116 ], 104 117 ], -
site-chat-on-telegram/trunk/readme.txt
r3200176 r3200768 5 5 Tested up to: 6.7.1 6 6 Requires PHP: 8.0 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 19 19 * **Easy Integration:** Installing and configuring the plugin takes just a few minutes. 20 20 * **User-Friendly Interface:** Intuitive interface for configuring and managing the chat. 21 * **Flexible customisation of the widget display:** Specify the pages and post types where the support chat should be displayed. 22 * **Automatic response at the first request:** Automatic response to the first user query, ensuring quicker engagement and a better user experience. 21 23 * **Customization Options:** Personalize the chat widget with your own colors, manager's avatar, and welcome message. 22 24 * **Security:** All messages are transmitted using a secure connection. … … 66 68 == Changelog == 67 69 68 = 1.0.0 - 2024-1 0-10=70 = 1.0.0 - 2024-12-01 = 69 71 70 72 * Plugin created 73 74 = 1.0.1 - 2024-12-02 = 75 76 * Added Automatic reply to first message feature
Note: See TracChangeset
for help on using the changeset viewer.