1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 02:26:55 +01:00
MadelineProto/docs/TD_docs/constructors/messageChatMigrateFrom.md

46 lines
957 B
Markdown
Raw Normal View History

---
title: messageChatMigrateFrom
description: Supergroup channel is created from group chat
---
## Constructor: messageChatMigrateFrom
[Back to constructors index](index.md)
Supergroup channel is created from group chat
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|title|[string](../types/string.md) | Yes|Title of created channel chat|
|group\_id|[int](../types/int.md) | Yes|Identifier of the group it is migrated from|
### Type: [MessageContent](../types/MessageContent.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$messageChatMigrateFrom = ['_' => 'messageChatMigrateFrom', 'title' => 'string', 'group_id' => int];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "messageChatMigrateFrom", "title": "string", "group_id": int}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
messageChatMigrateFrom={_='messageChatMigrateFrom', title='string', group_id=int}
```