Layer 220
MessagesMigrateChat
Turn a basic group into a supergroup
method
Users
messages.migrateChat#a2875319 chat_id:long = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| ChatId | long | Basic group to migrate |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNELS_TOO_MUCH | You have joined too many channels/supergroups. |
| 403 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | CHAT_ID_INVALID | The provided chat id is invalid. |
| 500 | CHAT_INVALID | Invalid chat. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// MessagesMigrateChat - positional arguments result, err := client.MessagesMigrateChat(int64(0)) if err != nil { // handle error } // result is *tg.Updates