1
Commit Graph

9 Commits

Author SHA1 Message Date
negasus
6317bb0bb5 - add method bot.ID() int64
- add method `bot.Token() string`
2025-01-10 12:00:32 +03:00
Renato Saksanni
9b4caace93
Add golangci-lint configuration and fix linting issues (#97)
Add golangci-lint using official golangci action and fix linting issues
2024-07-08 17:57:08 +03:00
Dharsan
7f34de577e
Feature: Ability to verify webhook secret token inside the bot program (#95)
* feat(webhook-token): ability to verify webhook secret token inside the bot program

* test(webhook-token): added additional tests for wrong tokens
2024-06-28 12:13:43 +03:00
negasus
7850afd5c3 fix race in test 2024-04-25 18:17:11 +03:00
Ehson
e65d48be16
Added error handling for specific error codes (#69)
* Added error handling for specific error codes

* added TooManyRequestsError witch have retry_after

* Added a parameters field with retry_after and handled error code 429

* added example of handling TooManyRequestsError with RetryAfter

* fix: changed description

* fix: used switch statement instead of if statement

* add MigrateError type and IsMigrateError function

* updated apiResponse struct and error handling logic

* fix: changed from %w to %s to ensure proper functionality of Sprintf

* fix: correct error message in getMe test

---------

Co-authored-by: Ehson <priler05@gmail.com>
Co-authored-by: usmonzodasomon <budushiyprogrammist@gmail.com>
2024-04-03 10:45:48 +03:00
Negasus
346c98ce3d fix test 2024-03-11 11:27:27 +03:00
Negasus
e0160cc185 check for empty token on bot init 2023-06-13 16:47:20 +03:00
Andrew Privalov
83b28021a4
V6.6 (#20)
* api v6.6

* fix some tests on golangci lint

* update changelog and readme
2023-03-14 11:26:55 +03:00
Andrew Privalov
2d86115e4b
Tests (#12)
* remove handlerType param from RegisterHandlerMatchFunc

* change ChatID to `any` for StopMessageLiveLocationParams

* check rawRequest param by reflect isNil

* wip: add tests

* add methods tests
2023-01-19 10:59:16 +03:00