messages.InitHistoryImport¶
- class pyrogram.raw.functions.messages.InitHistoryImport[source]¶
Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats ».
Usable by Users Bots- Details:
Layer:
229ID:
34090C3B
- Parameters:
peer (
InputPeer) – The Telegram chat where the history should be imported.file (
InputFile) – File with messages to import.media_count (
int32-bit) – Number of media files associated with the chat that will be uploaded using messages.uploadImportedMedia.
- Returns: