Plugin Directory

Changeset 3303869


Ignore:
Timestamp:
05/31/2025 07:28:25 AM (10 months ago)
Author:
guruteam
Message:

1.2.9 version

Location:
bot-for-telegram-on-woocommerce
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bot-for-telegram-on-woocommerce/tags/1.2.9/pro/includes/BFTOW_PRO_Notifications.php

    r3303855 r3303869  
    6666            ];
    6767            $result = BFTOW_Api::getInstance()->send_message('sendMessage', $customer_data);
    68             $result = json_decode($result['body'], true);
     68
    6969            $r = array(
    7070                'message' => esc_html__('Error, please make sure you enter the correct public channel name', 'bot-for-telegram-on-woocommerce'),
    7171                'status' => 'error'
    7272            );
     73           
    7374            if($result['ok'] && !empty($result['result']['chat']['id'])){
    7475                $chat_id = esc_html($result['result']['chat']['id']);
  • bot-for-telegram-on-woocommerce/trunk/pro/includes/BFTOW_PRO_Notifications.php

    r3303855 r3303869  
    6666            ];
    6767            $result = BFTOW_Api::getInstance()->send_message('sendMessage', $customer_data);
    68             $result = json_decode($result['body'], true);
     68
    6969            $r = array(
    7070                'message' => esc_html__('Error, please make sure you enter the correct public channel name', 'bot-for-telegram-on-woocommerce'),
    7171                'status' => 'error'
    7272            );
     73           
    7374            if($result['ok'] && !empty($result['result']['chat']['id'])){
    7475                $chat_id = esc_html($result['result']['chat']['id']);
Note: See TracChangeset for help on using the changeset viewer.