account.initTakeoutSession #

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

Layer 223

account.takeout#4dba4501 id:long = account.Takeout;
---functions---
account.initTakeoutSession#8ef3eab0 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?long = account.Takeout;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
contactsflags.0?trueWhether to export contacts
message_usersflags.1?trueWhether to export messages in private chats
message_chatsflags.2?trueWhether to export messages in basic groups
message_megagroupsflags.3?trueWhether to export messages in supergroups
message_channelsflags.4?trueWhether to export messages in channels
filesflags.5?trueWhether to export files
file_max_sizeflags.5?longMaximum size of files to export

Result #

account.Takeout

Only users can use this method #

Possible errors #

CodeTypeDescription
420TAKEOUT_INIT_DELAY_%dSorry, 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.

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.