mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-04 06:47:51 +01:00
43 lines
644 B
Markdown
43 lines
644 B
Markdown
---
|
|
title: msg_copy
|
|
description: msg_copy attributes, type and example
|
|
---
|
|
## Constructor: msg\_copy
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required |
|
|
|----------|---------------|----------|
|
|
|orig\_message|[MTMessage](../types/MTMessage.md) | Yes|
|
|
|
|
|
|
|
|
### Type: [MessageCopy](../types/MessageCopy.md)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$msg_copy = ['_' => 'msg_copy', 'orig_message' => MTMessage];
|
|
```
|
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
```
|
|
{"_": "msg_copy", "orig_message": MTMessage}
|
|
```
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
```
|
|
msg_copy={_='msg_copy', orig_message=MTMessage}
|
|
|
|
```
|
|
|
|
|