account.initTakeoutSession
Initialize a takeout session, see here » for more info.
func (c *Client) AccountInitTakeoutSession(ctx context.Context, request *AccountInitTakeoutSessionRequest) (*AccountTakeout, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountInitTakeoutSession(ctx, &tg.AccountInitTakeoutSessionRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *AccountTakeout
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Contacts | bool | — | Whether to export contacts |
MessageUsers | bool | — | Whether to export messages in private chats |
MessageChats | bool | — | Whether to export messages in basic groups |
MessageMegagroups | bool | — | Whether to export messages in supergroups |
MessageChannels | bool | — | Whether to export messages in channels |
Files | bool | — | Whether to export files |
FileMaxSize | int64 | — | Maximum size of files to export |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
account.initTakeoutSession#8ef3eab0