1
Commit Graph

61 Commits

Author SHA1 Message Date
Andrew Privalov
337def9889
- add option WithInitialOffset(offset int64) - allows to set initial offset for getUpdates method (#148) 2025-01-13 10:59:56 +03:00
negasus
df6e60b105 upd readme 2025-01-10 16:21:29 +03:00
negasus
6317bb0bb5 - add method bot.ID() int64
- add method `bot.Token() string`
2025-01-10 12:00:32 +03:00
Andrew Privalov
934a13aa87
api 8.2 (#144)
* api 8.2

* fix readme
2025-01-10 11:11:35 +03:00
Andrew Privalov
107a94ed42
Validate webapp - change returns model (#143)
* ValidateWebappRequest returns WebAppUser model

* fix readme
2025-01-10 10:36:46 +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
dda407358e
8.1 (#137)
* api 8.1

* readme
2024-12-19 15:12:11 +03:00
Andrew Privalov
a12a771e33
API v8.0 (#133)
* bot api 8.0

* readme
2024-11-18 11:37:50 +03:00
Andrew Privalov
7500be4241
v7.11 (#127) 2024-10-31 18:39:49 +03:00
negasus
b5f06d9338 update readme 2024-10-17 13:54:50 +03:00
Raman Antanevich
d82ce2e70f
feat: Ability to process updates across multiple gorutines (#112) 2024-09-16 11:16:36 +03:00
Andrew Privalov
581c533020
7.10 (#114)
* 7.10

* changelog
2024-09-13 15:43:05 +03:00
Andrew Privalov
addc1c9e3a
add option UseTestEnvironment (#109)
* add option `UseTestEnvironment` #89

* add test
2024-08-22 11:45:37 +03:00
Andrew Privalov
b3b73e94e1
7.9 (#103)
* api 7.9

* changelog, readme
2024-08-14 16:43:42 +03:00
negasus
e7faad5f40 add ValidateWebappRequest func 2024-07-25 15:30:52 +03:00
Andrew Privalov
8984ecd9d4
V7.6 (#102)
* add models.ParseModeMarkdownV1 const

* fix typo in readme

* add method SendPaidMedia

* add field PaidMedia

* add InvoicePayload to TransactionPartnerUser

* add PaidMedia

* remove comments from example

* add refunded_payment

* changelog, readme
2024-07-18 17:37:31 +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
abdoo9
0fa1988d42
Updated README.md to improve clarity and accuracy (#99)
Corrected grammatical errors and typos for better readability
2024-06-25 10:36:46 +03:00
Andrew Privalov
7a604116d3
7.5 (#98)
* api v7.5

* update readme, changelog
2024-06-24 13:13:37 +03:00
Andrew Privalov
79a3783161
7.4 (#86)
* add omitempty for `provider_token` fields

* add RefundStarPayment method

* add effect_id to message

* add message_effect_id

* add show_caption_above_media

* add show_caption_above_media

* add types for chatAction consts

* changelog, readme
2024-05-29 14:08:43 +03:00
Andrew Privalov
267a217a31
support api 7.3 (#84) 2024-05-20 12:07:43 +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
8f8421f0a9 update readme and changelog 2024-04-02 18:12:13 +03:00
Andrew Privalov
158a3c1955
remove worker pool (#73)
* remove worker pool

* add option WithUpdatesChannelCap

* update readme
2024-04-02 17:23:32 +03:00
Negasus
1f29bed497 return ErrorForbidden for error code 403 2024-03-11 11:27:27 +03:00
Daniel Apatin
1506bae804
add WithAllowedUpdates option (#65)
* add WithAllowedUpdates option

* Add WithAllowedUpdates method description to README.md
2024-03-04 19:06:02 +03:00
Andrew Privalov
ceeb95e6f1
support API v7.1 (#61) 2024-02-19 11:56:20 +03:00
Andrew Privalov
96a4c359a7
v7.0 (#55)
* API v7.0

* readme
2024-01-10 15:16:04 +03:00
Negasus
8753c4a6d7 readme, changelog 2023-12-07 10:54:53 +03:00
Andrew Privalov
f04eaedb1c
6.9 (#40)
* Added the new administrator privileges can_post_stories, can_edit_stories and can_delete_stories to the classes ChatMemberAdministrator and ChatAdministratorRights.

* update PromoteChatMemberParams

* update WriteAccessAllowed

* update changelog, readme
2023-09-28 13:57:02 +03:00
Andrew Privalov
9ddae8e867
6.8 (#38) 2023-08-24 11:29:23 +03:00
Andrew Privalov
4a9fb6f692
add option WithSkipGetMe (#32) 2023-05-16 10:38:28 +03:00
Andrew Privalov
d74b107d69
bot api 6.7 (#28) 2023-04-24 09:11:48 +03:00
Negasus
986895bec1 changelog 2023-04-13 11:45:09 +03:00
Negasus
e33efbedec - add helpers bot.True() and bot.False() for define *bool values 2023-04-10 10:43:31 +03:00
Negasus
574d0c6bdc make bot.ProcessUpdate public 2023-04-05 12:58:39 +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
de923f1916
api 6.5 (#16) 2023-02-06 10:54:44 +03:00
Negasus
9018b38367 update readme 2023-01-26 10:20:27 +03:00
Negasus
c44c5e1f17 update changelog and readme 2023-01-19 11:42:39 +03:00
Negasus
b4afee558d update codecov badge 2023-01-19 11:36:36 +03:00
Negasus
3499c781f9 add github action for tests and coverage upload 2023-01-19 11:33:37 +03:00
Negasus
1d0067f081 api 6.4 2023-01-10 11:18:24 +03:00
Negasus
04069e2eab update readme and changelog 2022-12-28 10:43:33 +03:00
Andrew Privalov
44314d4b35
6.3 (#7)
* support 6.3 API

* update readme
2022-11-05 19:31:41 +03:00
Andrew Privalov
3b96799879
Check on start (#6)
* call getMe on New and returns error

* update changelog
2022-10-14 13:48:02 +03:00
Andrew Privalov
0dca12b7f1
v6.2 (#3) 2022-08-23 13:24:20 +03:00
Negasus
4ca2398156 update readme 2022-07-08 12:21:36 +03:00
Negasus
9a61aeb408 fix typo 2022-05-06 14:32:38 +03:00
Negasus
3cf8bd2f89 update readme 2022-05-06 14:22:39 +03:00