messages.declineUrlAuth
Decline an incoming OAuth authorization request », notifying the server that the user refused the login request.
func (c *Client) MessagesDeclineURLAuth(ctx context.Context, url string) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesDeclineURLAuth(ctx, url)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
URL | string | yes | The OAuth deep link from the OAUTH_REQUEST push notification or the oauth_request web event |
Returns
bool
References
- Official documentation
- Generated Go reference
- TL definition:
messages.declineUrlAuth#35436bbc