messages.InitHistoryImport#
- class pyrogram.raw.functions.messages.InitHistoryImport#
Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats .
- Details:
Layer:
211
ID:
34090C3B
- Parameters:
peer (
InputPeer
) – The Telegram chat where the history should be imported.file (
InputFile
) – File with messages to import.media_count (
int
32-bit
) – Number of media files associated with the chat that will be uploaded using messages.uploadImportedMedia.
- Returns:
messages.HistoryImport