@@ -1454,6 +1454,9 @@ 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 ) {
1458
+ return @$ this ->data ['edited_message ' ]['text ' ];
1459
+ }
1457
1460
1458
1461
return @$ this ->data ['message ' ]['text ' ];
1459
1462
}
@@ -1477,7 +1480,9 @@ public function ChatID()
1477
1480
if ($ type == self ::CHANNEL_POST ) {
1478
1481
return @$ this ->data ['channel_post ' ]['chat ' ]['id ' ];
1479
1482
}
1480
-
1483
+ if ($ type == self ::EDITED_MESSAGE ) {
1484
+ return @$ this ->data ['edited_message ' ]['chat ' ]['id ' ];
1485
+ }
1481
1486
return $ this ->data ['message ' ]['chat ' ]['id ' ];
1482
1487
}
1483
1488
@@ -1495,6 +1500,9 @@ public function MessageID()
1495
1500
if ($ type == self ::CHANNEL_POST ) {
1496
1501
return @$ this ->data ['channel_post ' ]['message_id ' ];
1497
1502
}
1503
+ if ($ type == self ::EDITED_MESSAGE ) {
1504
+ return @$ this ->data ['edited_message ' ]['message_id ' ];
1505
+ }
1498
1506
1499
1507
return $ this ->data ['message ' ]['message_id ' ];
1500
1508
}
@@ -1601,6 +1609,9 @@ public function FirstName()
1601
1609
if ($ type == self ::CHANNEL_POST ) {
1602
1610
return @$ this ->data ['channel_post ' ]['from ' ]['first_name ' ];
1603
1611
}
1612
+ if ($ type == self ::EDITED_MESSAGE ) {
1613
+ return @$ this ->data ['edited_message ' ]['from ' ]['first_name ' ];
1614
+ }
1604
1615
1605
1616
return @$ this ->data ['message ' ]['from ' ]['first_name ' ];
1606
1617
}
@@ -1615,6 +1626,9 @@ public function LastName()
1615
1626
if ($ type == self ::CHANNEL_POST ) {
1616
1627
return @$ this ->data ['channel_post ' ]['from ' ]['last_name ' ];
1617
1628
}
1629
+ if ($ type == self ::EDITED_MESSAGE ) {
1630
+ return @$ this ->data ['edited_message ' ]['from ' ]['last_name ' ];
1631
+ }
1618
1632
1619
1633
return @$ this ->data ['message ' ]['from ' ]['last_name ' ];
1620
1634
}
@@ -1629,6 +1643,9 @@ public function Username()
1629
1643
if ($ type == self ::CHANNEL_POST ) {
1630
1644
return @$ this ->data ['channel_post ' ]['from ' ]['username ' ];
1631
1645
}
1646
+ if ($ type == self ::EDITED_MESSAGE ) {
1647
+ return @$ this ->data ['edited_message ' ]['from ' ]['username ' ];
1648
+ }
1632
1649
1633
1650
return @$ this ->data ['message ' ]['from ' ]['username ' ];
1634
1651
}
@@ -1661,6 +1678,9 @@ public function UserID()
1661
1678
if ($ type == self ::CHANNEL_POST ) {
1662
1679
return $ this ->data ['channel_post ' ]['from ' ]['id ' ];
1663
1680
}
1681
+ if ($ type == self ::EDITED_MESSAGE ) {
1682
+ return @$ this ->data ['edited_message ' ]['from ' ]['id ' ];
1683
+ }
1664
1684
1665
1685
return $ this ->data ['message ' ]['from ' ]['id ' ];
1666
1686
}
0 commit comments