messages.StartHistoryImport
- class pyrogram.raw.functions.messages.StartHistoryImport
Complete the history import process, importing all messages into the chat. To be called only after initializing the import with messages.initHistoryImport and uploading all files using messages.uploadImportedMedia.
- Details:
Layer:
223ID:
B43DF344
- Parameters:
- peer (
InputPeer): The Telegram chat where the messages should be imported, click here for more info »
- import_id (
int64-bit): Identifier of a history import session, returned by messages.initHistoryImport.
- peer (
- Returns:
bool
TL Schema
messages.startHistoryImport#b43df344
peer:InputPeer
import_id:long
= Bool
Parameter Tree
StartHistoryImport
├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── import_id →
longExample
await app.invoke(
StartHistoryImport(
peer=await app.resolve_peer(chat_id),
import_id=0,
)
)