File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ final class Message extends Type
39
39
*/
40
40
public $ forward_from ;
41
41
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
+
42
49
/**
43
50
* Optional. For forwarded messages, date the original message was sent in Unix time
44
51
*
@@ -233,6 +240,10 @@ public function loadRelated(array $attributes)
233
240
$ this ->forward_from = User::create ($ attributes ['forward_from ' ]);
234
241
}
235
242
243
+ if (isset ($ attributes ['forward_from_chat ' ])) {
244
+ $ this ->forward_from_chat = Chat::create ($ attributes ['forward_from_chat ' ]);
245
+ }
246
+
236
247
if (isset ($ attributes ['reply_to_message ' ])) {
237
248
$ this ->reply_to_message = Message::create ($ attributes ['reply_to_message ' ]);
238
249
}
You can’t perform that action at this time.
0 commit comments