File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ public static function insertRequest(Update $update)
283
283
$ chat_title = $ chat ->getTitle ();
284
284
285
285
$ sth2 ->bindParam (':id ' , $ chat_id , \PDO ::PARAM_INT );
286
- $ sth2 ->bindParam (':title ' , $ chat , \PDO ::PARAM_STR , 255 );
286
+ $ sth2 ->bindParam (':title ' , $ chat_title , \PDO ::PARAM_STR , 255 );
287
287
$ sth2 ->bindParam (':date ' , $ date , \PDO ::PARAM_STR );
288
288
289
289
$ status = $ sth2 ->execute ();
@@ -456,6 +456,7 @@ public static function sendToActiveChats(
456
456
457
457
$ results = [];
458
458
while ($ row = $ sth ->fetch (\PDO ::FETCH_ASSOC )) {
459
+ //$result[] = $row;
459
460
//print_r($row);
460
461
$ data ['chat_id ' ] = $ row ['chat_id ' ];
461
462
$ results [] = call_user_func_array ($ callback_path .':: ' .$ callback_function , array ($ data ));
Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ public static function executeCurl($action, array $data)
116
116
}
117
117
118
118
$ curlConfig = array (
119
- CURLOPT_HTTPHEADER => ['Content-Type: application/json ' ],
120
119
CURLOPT_URL => 'https://api.telegram.org/bot ' . self ::$ telegram ->getApiKey () . '/ ' . $ action ,
121
120
CURLOPT_POST => true ,
122
121
CURLOPT_RETURNTRANSFER => true
You can’t perform that action at this time.
0 commit comments