Commit Graph

50 Commits (83bd8dd89d7fc7540482e0c52c59b08259582b5a)

Author SHA1 Message Date
Demian ca801f2f1c options: fix nil reply markup handling 4 years ago
Demian 6d548640f2 options: add RemoveKeyboard option 4 years ago
Demian e467d6286c errors: update and implement flood error 4 years ago
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.
4 years ago
Demian 91f4c3498e util: fix possible nil dereference in debug 4 years ago
Demian a70d2204db bot: fix root group handling 4 years ago
Demian 4062f24361 context: pass context to the OnError middleware 4 years ago
Demian f1015d1754 middleware: basic implementation and groups 4 years ago
Demian 5a480bd291 Merge branch 'v2' into v3 4 years ago
Demian 5f6792d860 context: adapt handlers 4 years ago
PiggyMoe 2b4e7eeb65
util: fix param type for embedRights 4 years ago
Demian 5a1a187e87 telebot: clarify and fix all naming issues 4 years ago
Demian 98a898f4c7 bot: add default parse mode feature 4 years ago
Demian c271d16dfc bot: handle True response results 4 years ago
Orivej Desh f95090faf1 bot: expose ProcessUpdate and add Synchronous handlers mode
Bot.ProcessUpdate in synchronous mode can be used as an AWS Lambda function.
4 years ago
Demian 4e2f28c4f3 bot: implement editMessageLiveLocation, update some documentation 4 years ago
unknown 18d73fe70c Merge branch 'v2' into develop 4 years ago
Viktor Oreshkin f096d2b1ad unconvert ParseMode string cast 4 years ago
unknown e5789a08bb Refactor unexported code 4 years ago
unknown ce43c6a8a2 Refactor code, fix code style issues 4 years ago
Viktor Oreshkin da7bc9e2ff explicitly ignore error in embedRights 5 years ago
Viktor Oreshkin 6cf54c1557 Improve some loops (use copy, style fix) 5 years ago
evgendn 240965f18d Add stickers methods 5 years ago
Ian Byrd 9b714b274c reducing excessive deffered calls 5 years ago
Ian Byrd 42933c1912 small fixes, go.{mod,sum} 5 years ago
Viktor Oreshkin 273a40e72a Send thumbnails (but not in albums) 6 years ago
Ulrich Schreiner 97e78127ad
fix lint errors in current code 6 years ago
Ian Byrd 389bcd3e65 Editting bot-issued messages doesn't return an error now. 7 years ago
Ian Byrd bda24d8650 Possibly breaking some builds, but inline message IDs won't work
otherwise.
7 years ago
Ian Byrd 25672b8f68 Proper fix. 7 years ago
Ian Byrd a629ec5c64 Revert "Reporting errors correctly."
This reverts commit 7ecf4bd6d5.
7 years ago
Ian Byrd 7ecf4bd6d5 Reporting errors correctly. 7 years ago
Ian Byrd b831116da3
Always copying passed options to protect callback data integrity. 7 years ago
Ian Byrd 426f436905
Fix for data-less inline buttons. 7 years ago
Ian Byrd 4f400f035e
Raw() method introduced. KeyboardButton -> ReplyButton. 7 years ago
Ian Byrd 38298d3e9d
Reporter: protection from in-handler panics. 7 years ago
Ian Byrd 5a73cee70a
Handle() now supports keyboard buttons as endpoints. 7 years ago
Ian Byrd 2a1158c03a Revert "Protecting callbacks with callback guards."
This reverts commit 6f068bdacb.
7 years ago
Ian Byrd 6f068bdacb
Protecting callbacks with callback guards. 7 years ago
Ian Byrd eae6345b88
InlineButton became endpoint (callback handling.) 7 years ago
Ian Byrd 9aad0c4faa
OnAddedToGroup introduced. 7 years ago
Ian Byrd 091bbc9a13 Administration tools, this resolves #43. 7 years ago
Ian Byrd 43be06e850
NewBot, Settings, Poller, LongPoller - new bot creation API. 7 years ago
Ian Byrd 0f1d521167
Cleanup, documentation, bikeshedding. 7 years ago
Ian Byrd d5e4082eaf
New Edit() and EditCaption() methods are taking over.
IMO, we shouldn't be introducing distinct EditText/EditMarkup
methods because it just doesn't make sense, you can do both in
one and EditCaption is a pretty odd case so we live it be.
7 years ago
Ian Byrd dbc2cd7f6d
Massive refactoring and file structure changes.
- Callback structs has been moved to callbacks.go
- User / Chat and its methods -> chat.go
- Concept of Editable and Message Signature introduced
- No more types.go, it's been refactored into media.go + friends
7 years ago
Ian Byrd 3cf300d59d
Documentation for latest changes. 7 years ago
Ian Byrd 9e92b919f8
Refining ReplyMarkup API. 7 years ago
Ian Byrd 6eec63ddbb
Delete() has been added. 7 years ago
Ian Byrd ef59af6db7
Introducing Sendable interface (see #93.)
This commit refactors lots of duplicated code from bot.go, so
instead of having N redundant SendX methods, now it's the
responsibility of all Sendable objects to implement Send(..)
instead. Impl in types_send.go, 150 LOC only!
7 years ago