This repository was archived by the owner on Sep 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -77,11 +77,19 @@ class Chat extends TelegramTypes
7777 */
7878 public $ invite_link = '' ;
7979
80+ /**
81+ * Optional. Pinned message, for supergroups. Returned only in getChat
82+ * @var Message
83+ */
84+ public $ pinned_message ;
85+
8086 public function mapSubObjects (string $ key , array $ data ): TelegramTypes
8187 {
8288 switch ($ key ) {
8389 case 'photo ' :
8490 return new ChatPhoto ($ data , $ this ->logger );
91+ case 'pinned_message ' :
92+ return new Message ($ data , $ this ->logger );
8593 }
8694 return parent ::mapSubObjects ($ key , $ data );
8795 }
Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ class Message extends TelegramTypes
6060 */
6161 public $ forward_from_message_id = 0 ;
6262
63+ /**
64+ * Optional. For messages forwarded from channels, signature of the post author if present
65+ * @var string
66+ */
67+ public $ forward_signature = '' ;
68+
6369 /**
6470 * Optional. For forwarded messages, date the original message was sent in Unix time
6571 * @var int
@@ -79,6 +85,12 @@ class Message extends TelegramTypes
7985 */
8086 public $ edit_date = 0 ;
8187
88+ /**
89+ * Optional. Signature of the post author for messages in channels
90+ * @var string
91+ */
92+ public $ author_signature = '' ;
93+
8294 /**
8395 * Optional. For text messages, the actual UTF-8 text of the message, 0-4096 characters
8496 * @var string
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ class User extends TelegramTypes
2121 */
2222 public $ id = 0 ;
2323
24+ /**
25+ * True, if this user is a bot
26+ * @var bool
27+ */
28+ public $ is_bot = false ;
29+
2430 /**
2531 * User‘s or bot’s first name
2632 * @var string
You can’t perform that action at this time.
0 commit comments