Commit Graph

31 Commits

Author SHA1 Message Date
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
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.
2017-11-19 03:44:31 +02:00
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
2017-11-18 15:06:20 +02:00
Ian Byrd
3cf300d59d
Documentation for latest changes. 2017-11-17 16:29:44 +02:00
Ian Byrd
9e92b919f8
Refining ReplyMarkup API. 2017-11-17 15:55:18 +02:00
Ian Byrd
6eec63ddbb
Delete() has been added. 2017-11-17 09:22:16 +02:00
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!
2017-11-17 08:20:36 +02:00