account.initTakeoutSession

Initialize a takeout session, see here » for more info.

 Method schema is available as of layer 143. Switch »

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 basic 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?long Maximum size of files to export

Result

account.Takeout

Possible errors

Code Type Description
420 TAKEOUT_INIT_DELAY_%d Sorry, for security reasons, you will be able to begin downloading your data in %d seconds. We have notified all your devices about the export request to make sure it's authorized and to give you time to react if it's not.

Related pages

Channels, supergroups, gigagroups and basic groups

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

Takeout API

Telegram's API allows users to export all of their information through the takeout API.