1
Commit Graph

10 Commits

Author SHA1 Message Date
negasus
03b55ab57a add some checks 2024-12-23 11:12:50 +03:00
David Ramiro
aac17446ae
feat: add handler type for photo captions (#138)
* feat: add handler type for photo captions

* doc: add photo caption handler to readme
2024-12-23 11:04:26 +03:00
Andrew Privalov
11f90488e0
change handlers map to slice (#115) 2024-09-16 11:38:22 +03:00
Oanh Nguyen
6f8231df77
add 'HandlerTypeCallbackQueryGameShortName' (#108) 2024-09-16 11:16:03 +03:00
TBXark
db32473a6a
feat: add middlewares for handler (#105)
* feat: each handler can add middleware.

* fix: singleFlight middleware example
2024-09-16 11:10:59 +03:00
negasus
f31379d61a simplify 2024-09-10 18:24:43 +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
Andrew Zhukovskiy
bf349456e6
Added RegisterHandlerMatchFunc (#9)
which registers handler that can be matched based on
arbitrary `func(update *models.Update) bool`
2022-12-26 12:27:35 +03:00
Negasus
28b72956de validation refactoring, InputMedia group attachment implementation 2022-04-29 19:04:38 +03:00
Negasus
a030f389d9 initial 2022-04-25 19:02:51 +03:00