account.finishTakeoutSession
Terminate a takeout session, see here » for more info.
func (c *Client) AccountFinishTakeoutSession(ctx context.Context, request *AccountFinishTakeoutSessionRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountFinishTakeoutSession(ctx, &tg.AccountFinishTakeoutSessionRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Success | bool | — | Data exported successfully |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 403 | TAKEOUT_REQUIRED | A takeout session needs to be initialized first, see here » for more info. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.finishTakeoutSession#1d2652ee