# messages.HistoryImport

Identifier of a [history import session, click here for more info »](/api/import.md).

```tl
messages.historyImport#1662af0b id:long = messages.HistoryImport;

---functions---

messages.initHistoryImport#34090c3b peer:InputPeer file:InputFile media_count:int = messages.HistoryImport;
```

### Constructors

| Constructor | Description |
| --- | --- |
| [messages.historyImport](/constructor/messages.historyImport.md) | ID of a specific [chat import session, click here for more info »](/api/import.md). |

### Methods

| Method | Description |
| --- | --- |
| [messages.initHistoryImport](/method/messages.initHistoryImport.md) | Import chat history from a foreign chat app into a specific Telegram chat, [click here for more info about imported chats »](/api/import.md). |

### Related pages

#### [Imported messages](/api/import.md)
Telegram allows importing messages and media from foreign chat apps.