telegram api method · layer 229 · #8ef3eab0

account.initTakeoutSession

usable by users

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

definition

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

returns

account.Takeout

errors (3)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
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.

history

present in layers 81–229 · constructor id changed 1×

idlayers
#f05b480481–142
#8ef3eab0143–229