telegram api method · layer 229 · #8ef3eab0
account.initTakeoutSession
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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
contacts | true | Whether to export contacts |
message_users | true | Whether to export messages in private chats |
message_chats | true | Whether to export messages in basic groups |
message_megagroups | true | Whether to export messages in supergroups |
message_channels | true | Whether to export messages in channels |
files | true | Whether to export files |
file_max_size | long | Maximum size of files to export |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
| 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. |
history
present in layers 81–229 · constructor id changed 1×
| id | layers |
|---|---|
| #f05b4804 | 81–142 |
| #8ef3eab0 | 143–229 |