@@ -256,7 +256,7 @@ public function forwardMessage(array $content)
256
256
* <td>Integer</td>
257
257
* <td>Optional</td>
258
258
* <td>If the message is a reply, ID of the original message</td>
259
- * </tr>
259
+ * </tr>
260
260
* <tr>
261
261
* <td>disable_notification</td>
262
262
* <td>Boolean</td>
@@ -1454,7 +1454,7 @@ public function Text()
1454
1454
if ($ type == self ::CHANNEL_POST ) {
1455
1455
return @$ this ->data ['channel_post ' ]['text ' ];
1456
1456
}
1457
- if ($ type == self ::EDITED_MESSAGE ) {
1457
+ if ($ type == self ::EDITED_MESSAGE ) {
1458
1458
return @$ this ->data ['edited_message ' ]['text ' ];
1459
1459
}
1460
1460
@@ -1480,9 +1480,10 @@ public function ChatID()
1480
1480
if ($ type == self ::CHANNEL_POST ) {
1481
1481
return @$ this ->data ['channel_post ' ]['chat ' ]['id ' ];
1482
1482
}
1483
- if ($ type == self ::EDITED_MESSAGE ) {
1483
+ if ($ type == self ::EDITED_MESSAGE ) {
1484
1484
return @$ this ->data ['edited_message ' ]['chat ' ]['id ' ];
1485
1485
}
1486
+
1486
1487
return $ this ->data ['message ' ]['chat ' ]['id ' ];
1487
1488
}
1488
1489
@@ -1500,7 +1501,7 @@ public function MessageID()
1500
1501
if ($ type == self ::CHANNEL_POST ) {
1501
1502
return @$ this ->data ['channel_post ' ]['message_id ' ];
1502
1503
}
1503
- if ($ type == self ::EDITED_MESSAGE ) {
1504
+ if ($ type == self ::EDITED_MESSAGE ) {
1504
1505
return @$ this ->data ['edited_message ' ]['message_id ' ];
1505
1506
}
1506
1507
@@ -1609,7 +1610,7 @@ public function FirstName()
1609
1610
if ($ type == self ::CHANNEL_POST ) {
1610
1611
return @$ this ->data ['channel_post ' ]['from ' ]['first_name ' ];
1611
1612
}
1612
- if ($ type == self ::EDITED_MESSAGE ) {
1613
+ if ($ type == self ::EDITED_MESSAGE ) {
1613
1614
return @$ this ->data ['edited_message ' ]['from ' ]['first_name ' ];
1614
1615
}
1615
1616
@@ -1626,7 +1627,7 @@ public function LastName()
1626
1627
if ($ type == self ::CHANNEL_POST ) {
1627
1628
return @$ this ->data ['channel_post ' ]['from ' ]['last_name ' ];
1628
1629
}
1629
- if ($ type == self ::EDITED_MESSAGE ) {
1630
+ if ($ type == self ::EDITED_MESSAGE ) {
1630
1631
return @$ this ->data ['edited_message ' ]['from ' ]['last_name ' ];
1631
1632
}
1632
1633
@@ -1643,7 +1644,7 @@ public function Username()
1643
1644
if ($ type == self ::CHANNEL_POST ) {
1644
1645
return @$ this ->data ['channel_post ' ]['from ' ]['username ' ];
1645
1646
}
1646
- if ($ type == self ::EDITED_MESSAGE ) {
1647
+ if ($ type == self ::EDITED_MESSAGE ) {
1647
1648
return @$ this ->data ['edited_message ' ]['from ' ]['username ' ];
1648
1649
}
1649
1650
@@ -1678,7 +1679,7 @@ public function UserID()
1678
1679
if ($ type == self ::CHANNEL_POST ) {
1679
1680
return $ this ->data ['channel_post ' ]['from ' ]['id ' ];
1680
1681
}
1681
- if ($ type == self ::EDITED_MESSAGE ) {
1682
+ if ($ type == self ::EDITED_MESSAGE ) {
1682
1683
return @$ this ->data ['edited_message ' ]['from ' ]['id ' ];
1683
1684
}
1684
1685
@@ -2844,7 +2845,7 @@ private function sendAPIRequest($url, array $content, $post = true)
2844
2845
}
2845
2846
curl_close ($ ch );
2846
2847
if (class_exists ('TelegramErrorLogger ' )) {
2847
- $ loggerArray = ($ this ->getData () == null ) ? [$ content ] : [$ this ->getData (), $ content ];
2848
+ $ loggerArray = ($ this ->getData () == null ) ? [$ content ] : [$ this ->getData (), $ content ];
2848
2849
TelegramErrorLogger::log (json_decode ($ result , true ), $ loggerArray );
2849
2850
}
2850
2851
0 commit comments