Commit Graph

56 Commits

Author SHA1 Message Date
demget
bd0bb74d13 Merge pull request #408 from DiscoreMe/develop
api: support 5.2
2021-07-25 15:32:08 +03:00
demget
2d17e0e12c Merge pull request #405 from DiscoreMe/develop
api: support 5.0
2021-07-25 15:25:04 +03:00
Enrico204
b6706e784c Decode big integers using Number and not float64 in error messages 2021-07-25 15:17:25 +03:00
Enrico204
cb3170d510 Add error parameters from JSON error to APIError 2021-07-25 15:17:20 +03:00
Enrico204
87a87bd338 Remove unused regex and format errors and utils files 2021-07-25 15:17:14 +03:00
Enrico204
ff90c378bb Parse error messages using JSON parser instead of regexes 2021-07-25 15:17:07 +03:00
Demian
ca801f2f1c options: fix nil reply markup handling 2020-11-08 01:45:58 +02:00
Demian
6d548640f2 options: add RemoveKeyboard option 2020-11-08 01:26:54 +02:00
Demian
e467d6286c errors: update and implement flood error 2020-11-03 22:18:58 +02:00
Demian
9f08ef94de telebot: remove ErrSkip
There is no need in this error, as we can skip or abort the execution
by simply returning a nil, instead of calling the next context handler.
2020-10-20 13:30:55 +03:00
Demian
91f4c3498e util: fix possible nil dereference in debug 2020-10-08 20:11:35 +03:00
Demian
a70d2204db bot: fix root group handling 2020-09-15 18:12:43 +03:00
Demian
4062f24361 context: pass context to the OnError middleware 2020-07-26 00:07:58 +03:00
Demian
f1015d1754 middleware: basic implementation and groups 2020-07-25 23:55:01 +03:00
Demian
5a480bd291 Merge branch 'v2' into v3 2020-07-25 22:45:22 +03:00
Demian
5f6792d860 context: adapt handlers 2020-07-25 22:44:50 +03:00
PiggyMoe
2b4e7eeb65
util: fix param type for embedRights 2020-06-24 09:07:53 +08:00
Demian
5a1a187e87 telebot: clarify and fix all naming issues 2020-06-19 23:36:43 +03:00
Demian
98a898f4c7 bot: add default parse mode feature 2020-06-07 23:12:49 +03:00
Demian
c271d16dfc bot: handle True response results 2020-05-31 19:11:42 +03:00
Orivej Desh
f95090faf1 bot: expose ProcessUpdate and add Synchronous handlers mode
Bot.ProcessUpdate in synchronous mode can be used as an AWS Lambda function.
2020-04-28 15:35:44 +00:00
Demian
4e2f28c4f3 bot: implement editMessageLiveLocation, update some documentation 2020-04-16 18:56:47 +03:00
unknown
18d73fe70c Merge branch 'v2' into develop 2020-04-16 16:50:10 +03:00
Viktor Oreshkin
f096d2b1ad unconvert ParseMode string cast 2020-04-16 10:17:17 +03:00
unknown
e5789a08bb Refactor unexported code 2020-04-06 16:04:25 +03:00
unknown
ce43c6a8a2 Refactor code, fix code style issues 2020-04-05 20:23:51 +03:00
Viktor Oreshkin
da7bc9e2ff explicitly ignore error in embedRights 2019-12-26 02:25:20 +03:00
Viktor Oreshkin
6cf54c1557 Improve some loops (use copy, style fix) 2019-12-26 02:04:23 +03:00
evgendn
240965f18d Add stickers methods 2019-07-29 23:04:52 +05:00
Ian Byrd
9b714b274c reducing excessive deffered calls 2019-03-29 16:25:48 +02:00
Ian Byrd
42933c1912 small fixes, go.{mod,sum} 2019-03-29 16:25:48 +02:00
Viktor Oreshkin
273a40e72a Send thumbnails (but not in albums) 2018-12-16 02:54:29 +03:00
Ulrich Schreiner
97e78127ad
fix lint errors in current code 2018-06-30 22:34:04 +02:00
Ian Byrd
389bcd3e65 Editting bot-issued messages doesn't return an error now. 2017-12-27 01:05:35 +02:00
Ian Byrd
bda24d8650 Possibly breaking some builds, but inline message IDs won't work
otherwise.
2017-12-27 00:39:15 +02:00
Ian Byrd
25672b8f68 Proper fix. 2017-12-19 02:15:29 +02:00
Ian Byrd
a629ec5c64 Revert "Reporting errors correctly."
This reverts commit 7ecf4bd6d5.
2017-12-19 02:13:08 +02:00
Ian Byrd
7ecf4bd6d5 Reporting errors correctly. 2017-12-19 01:07:50 +02:00
Ian Byrd
b831116da3
Always copying passed options to protect callback data integrity. 2017-12-11 01:21:51 +02:00
Ian Byrd
426f436905
Fix for data-less inline buttons. 2017-12-11 00:32:08 +02:00
Ian Byrd
4f400f035e
Raw() method introduced. KeyboardButton -> ReplyButton. 2017-11-29 00:15:50 +02:00
Ian Byrd
38298d3e9d
Reporter: protection from in-handler panics. 2017-11-27 17:58:41 +02:00
Ian Byrd
5a73cee70a
Handle() now supports keyboard buttons as endpoints. 2017-11-27 16:19:42 +02:00
Ian Byrd
2a1158c03a Revert "Protecting callbacks with callback guards."
This reverts commit 6f068bdacb.
2017-11-26 09:57:58 +02:00
Ian Byrd
6f068bdacb
Protecting callbacks with callback guards. 2017-11-26 05:10:06 +02:00
Ian Byrd
eae6345b88
InlineButton became endpoint (callback handling.) 2017-11-26 04:33:28 +02:00
Ian Byrd
9aad0c4faa
OnAddedToGroup introduced. 2017-11-23 04:13:15 +02:00
Ian Byrd
091bbc9a13 Administration tools, this resolves #43. 2017-11-21 17:29:44 +02:00
Ian Byrd
43be06e850
NewBot, Settings, Poller, LongPoller - new bot creation API. 2017-11-21 01:41:39 +02:00
Ian Byrd
0f1d521167
Cleanup, documentation, bikeshedding. 2017-11-19 17:21:25 +02:00