Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit cdfcfc3

Browse files
committed
Include changes of API v3.3
1 parent bb29215 commit cdfcfc3

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

src/Telegram/Types/Chat.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

src/Telegram/Types/Message.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/Telegram/Types/User.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)