Skip to content

Commit

Permalink
Merge pull request #48 from helios-ag/fix-uns
Browse files Browse the repository at this point in the history
Fixed unsubscribe request
  • Loading branch information
helios-ag authored Nov 18, 2024
2 parents c6261fe + 4fafce5 commit 337f5cb
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 337f5cb

Please sign in to comment.