Enrico204
844bbc5c97
Remove unused regex and format errors and utils files
4 years ago
Enrico204
24ffa44e36
Parse error messages using JSON parser instead of regexes
4 years ago
Demian
315d880be7
errors: update and implement flood error
4 years ago
PiggyMoe
2b4e7eeb65
util: fix param type for embedRights
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.
5 years ago
Demian
4e2f28c4f3
bot: implement editMessageLiveLocation, update some documentation
5 years ago
unknown
18d73fe70c
Merge branch 'v2' into develop
5 years ago
Viktor Oreshkin
f096d2b1ad
unconvert ParseMode string cast
5 years ago
unknown
e5789a08bb
Refactor unexported code
5 years ago
unknown
ce43c6a8a2
Refactor code, fix code style issues
5 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
6 years ago
Ian Byrd
42933c1912
small fixes, go.{mod,sum}
6 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