Skip to main content

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

NameTypeRequiredDescription
ContactsboolWhether to export contacts
MessageUsersboolWhether to export messages in private chats
MessageChatsboolWhether to export messages in basic groups
MessageMegagroupsboolWhether to export messages in supergroups
MessageChannelsboolWhether to export messages in channels
FilesboolWhether to export files
FileMaxSizeint64Maximum size of files to export

Returns

*AccountTakeout

References