account.initTakeoutSession

Initialize account takeout session

account.takeout#4dba4501 id:long = account.Takeout;
---functions---
account.initTakeoutSession#f05b4804 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?int = account.Takeout;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
contacts flags.0?true Whether to export contacts
message_users flags.1?true Whether to export messages in private chats
message_chats flags.2?true Whether to export messages in legacy groups
message_megagroups flags.3?true Whether to export messages in supergroups
message_channels flags.4?true Whether to export messages in channels
files flags.5?true Whether to export files
file_max_size flags.5?int Maximum size of files to export

Result

account.Takeout

Possible errors

Code Type Description
420 TAKEOUT_INIT_DELAY_%d Wait %d seconds before initing takeout.

Related pages

Channels

How to handle channels, supergroups, groups, and what's the difference between them.