Commit Graph

17 Commits

Author SHA1 Message Date
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