Plugin Directory

Changeset 1223304


Ignore:
Timestamp:
08/18/2015 06:04:24 AM (10 years ago)
Author:
websima
Message:

fixing welcome message

Location:
teletter-telegram-newsletter/trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • teletter-telegram-newsletter/trunk/includes/api-page.php

    r1221406 r1223304  
    44$offset = get_site_option( 'lastupdateid' );
    55$limit = $options['tbot_select_limit'];
     6$welcome = $options['tbot_text_newsubscriber'];
     7if($welcome == '') {$welcome = 'Successfully Subscribed';}
    68$offset = $offset+1;
    79$url = 'https://api.telegram.org/bot'.$token.'/getUpdates';
     
    7072    // Send a message to user to know that subscriptions is activated
    7173    $url = 'https://api.telegram.org/bot'.$token.'/sendMessage';
    72     $data = array('chat_id' => $user_id,'text' => 'عضویت تایید شد.');
     74    $data = array('chat_id' => $user_id,'text' => $welcome);
    7375        $options = array(
    7476        'http' => array(
  • teletter-telegram-newsletter/trunk/includes/getupdates.php

    r1221406 r1223304  
    77$method = $options['tbot_select_method'];
    88$limit = $options['tbot_select_limit'];
     9$welcome = $options['tbot_text_newsubscriber'];
     10if($welcome == '') {$welcome = 'Successfully Subscribed';}
    911$offset = get_site_option( 'lastupdateid' );
    1012$offset = $offset+1;
     
    7274    // Send a message to user to know that subscriptions is activated
    7375    $url = 'https://api.telegram.org/bot'.$token.'/sendMessage';
    74     $data = array('chat_id' => $user_id,'text' => 'عضویت تایید شد.');
     76    $data = array('chat_id' => $user_id,'text' => $welcome);
    7577        $options = array(
    7678        'http' => array(
Note: See TracChangeset for help on using the changeset viewer.