Skip to content

Commit

Permalink
Fixed unsubscribe request
Browse files Browse the repository at this point in the history
  • Loading branch information
helios-ag committed Nov 18, 2024
1 parent c6261fe commit 4fafce5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion callback/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ func (c Client) Unsubscribe(ctx context.Context, subscriptionId string) (*tgstat
}

body := make(map[string]string)



body["subscription_id"] = subscriptionId

req, err := c.api.NewRestRequest(ctx, c.token, http.MethodPost, path, body)

if err != nil {
Expand Down

0 comments on commit 4fafce5

Please sign in to comment.