Skip to content

Commit 6b70b59

Browse files
committed
add forward_from_chat to Message
1 parent 4e3d8de commit 6b70b59

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Type/Message.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ final class Message extends Type
3939
*/
4040
public $forward_from;
4141

42+
/**
43+
* Optional. For messages forwarded from a channel, information about the original channel
44+
*
45+
* @var Chat
46+
*/
47+
public $forward_from_chat;
48+
4249
/**
4350
* Optional. For forwarded messages, date the original message was sent in Unix time
4451
*
@@ -233,6 +240,10 @@ public function loadRelated(array $attributes)
233240
$this->forward_from = User::create($attributes['forward_from']);
234241
}
235242

243+
if (isset($attributes['forward_from_chat'])) {
244+
$this->forward_from_chat = Chat::create($attributes['forward_from_chat']);
245+
}
246+
236247
if (isset($attributes['reply_to_message'])) {
237248
$this->reply_to_message = Message::create($attributes['reply_to_message']);
238249
}

0 commit comments

Comments
 (0)