Skip to content

Commit 8892a60

Browse files
committed
Fix
1 parent 0f4352f commit 8892a60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DB.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public static function insertRequest(Update $update)
283283
$chat_title = $chat->getTitle();
284284

285285
$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);
287287
$sth2->bindParam(':date', $date, \PDO::PARAM_STR);
288288

289289
$status = $sth2->execute();
@@ -456,6 +456,7 @@ public static function sendToActiveChats(
456456

457457
$results = [];
458458
while ($row = $sth->fetch(\PDO::FETCH_ASSOC)) {
459+
//$result[] = $row;
459460
//print_r($row);
460461
$data['chat_id'] = $row['chat_id'];
461462
$results[] = call_user_func_array($callback_path.'::'.$callback_function, array($data));

src/Request.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ public static function executeCurl($action, array $data)
116116
}
117117

118118
$curlConfig = array(
119-
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
120119
CURLOPT_URL => 'https://api.telegram.org/bot' . self::$telegram->getApiKey() . '/' . $action,
121120
CURLOPT_POST => true,
122121
CURLOPT_RETURNTRANSFER => true

0 commit comments

Comments
 (0)