Changeset 1434140
- Timestamp:
- 06/09/2016 08:15:57 PM (10 years ago)
- Location:
- channeller-telegram-channel-administrator/trunk
- Files:
-
- 3 edited
-
channeller.php (modified) (2 diffs)
-
includes/ch-send-functions.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
channeller-telegram-channel-administrator/trunk/channeller.php
r1373950 r1434140 2 2 /** 3 3 * @package Websima Telegram Channel 4 * @version 1.4. 04 * @version 1.4.1 5 5 */ 6 6 /* … … 9 9 Description: Send Text, URL, Photo, Video and Audio from Wordpress to Telegram Channel using Telegram bot API. 10 10 Author: Websima Creative Agency 11 Version: 1.4. 011 Version: 1.4.1 12 12 Author URI: http://websima.com 13 13 */ -
channeller-telegram-channel-administrator/trunk/includes/ch-send-functions.php
r1373950 r1434140 170 170 $message = truncate_channeller ($message , 4096); 171 171 if ($token) { 172 $url = 'https://api.telegram.org/bot'.$token.'/sendMessage'; 173 $data = array('chat_id' => $user_id,'text' => $message,'parse_mode' => 'HTML'); 174 $options = array( 175 'http' => array( 176 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 177 'method' => 'GET', 178 'content' => http_build_query($data), 179 ) 180 ); 181 $context = stream_context_create($options); 182 $update = file_get_contents($url, false, $context); 172 $message = urlencode($message); 173 $url = 'https://api.telegram.org/bot'.$token.'/sendMessage?chat_id='.$user_id.'&text='.$message.'&parse_mode=HTML'; 174 $update = file_get_contents($url, false); 183 175 $result = json_decode($update); 184 176 if ($result->ok == 1) { … … 194 186 $logview = $options['tchannel_log']; 195 187 if ($logview == 'yes'){ 196 197 188 channeller_log(__( 'Send Text', 'tchannel' ), $resulter ,$user_id,$logger); 198 189 } -
channeller-telegram-channel-administrator/trunk/readme.txt
r1373950 r1434140 4 4 Tags: Telegram, Telegram Bot, Telegram Channel, Telegram API, translate ready 5 5 Requires at least: 3.0.1 6 Tested up to: 4. 4.27 Stable tag: 1.4. 06 Tested up to: 4.5.2 7 Stable tag: 1.4.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 79 79 80 80 == Changelog == 81 = 1.4.1 = 82 Fixed First Text Message Bug shown for some Users: 83 81 84 = 1.4.0 = 82 85 Fixed Bugs
Note: See TracChangeset
for help on using the changeset viewer.