Plugin Directory

Changeset 3200768


Ignore:
Timestamp:
12/02/2024 09:54:31 AM (16 months ago)
Author:
guruteam
Message:

1.0.1 version

Location:
site-chat-on-telegram/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • site-chat-on-telegram/trunk/inc/ScotChat.php

    r3200140 r3200768  
    130130        );
    131131
     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
    132151        wp_send_json_success();
    133152    }
  • site-chat-on-telegram/trunk/nuxy_settings/main.php

    r3200140 r3200768  
    101101                            'type'  => 'image',
    102102                        ],
     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                        ],
    103116                    ],
    104117                ],
  • site-chat-on-telegram/trunk/readme.txt

    r3200176 r3200768  
    55Tested up to: 6.7.1
    66Requires PHP: 8.0
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1919* **Easy Integration:** Installing and configuring the plugin takes just a few minutes.
    2020* **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.
    2123* **Customization Options:** Personalize the chat widget with your own colors, manager's avatar, and welcome message.
    2224* **Security:** All messages are transmitted using a secure connection.
     
    6668== Changelog ==
    6769
    68 = 1.0.0 - 2024-10-10 =
     70= 1.0.0 - 2024-12-01 =
    6971
    7072* 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.