Commit Graph

355 Commits

Author SHA1 Message Date
Ian Byrd
62ac17dbc9
JSON fix for buttons. 2017-12-12 01:30:05 +02:00
Ian Byrd
a2d28e604d
Minor API changes. 2017-12-12 00:27:09 +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
bdd5916b83
Callbacks fixed for both button types. 2017-12-10 20:51:43 +02:00
Ian Byrd
ea69d21d70 MiddlewarePoller's Filter field is now exported. 2017-12-10 16:19:54 +02:00
Ian Byrd
0e5915f6e1
Merge pull request #108 from martoche/v2
Fixes a nil pointer dereference
2017-12-08 13:43:37 +02:00
Martin Ottenwaelter
6adfa4be13 Fixes a nil pointer dereference by checking a nil value for the
OnAddedToGroup handler.
2017-12-08 12:09:32 +01:00
Ian Byrd
a3451788c3
Update README.md 2017-12-06 22:08:45 +02:00
Ian Byrd
05c0aad070
Update README.md 2017-12-02 13:25:09 +02:00
Ian Byrd
a93491ba38
Update README.md 2017-11-30 11:01:52 +02:00
Ian Byrd
575fdda36c
Update README.md 2017-11-29 22:35:45 +02:00
Ian Byrd
77d1ba9eb1 Inline mode fix. 2017-11-29 22:31:07 +02:00
Ian Byrd
47524101d5
Drafting README.md. 2017-11-29 00:27:23 +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
4cf58f4c5b
Automatic command payload handling. 2017-11-27 16:56:22 +02:00
Ian Byrd
5a73cee70a
Handle() now supports keyboard buttons as endpoints. 2017-11-27 16:19:42 +02:00
Ian Byrd
119a4e1698
Modified poller API, fixes #106. 2017-11-27 14:52:16 +02:00
Ian Byrd
3329d98249
Completing regular API now. 2017-11-26 11:15:11 +02:00
Ian Byrd
5ba925eaba
Completing inline API, closing #104. 2017-11-26 10:17:52 +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
31f0da895e
Graceful shutdown with Stop(), resolves #99, #105 2017-11-26 05:40:49 +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
d6ef68605b
Complete list of endpoints is now supported (see const.) 2017-11-26 03:38:30 +02:00
Ian Byrd
af9f8f00da
Pin/Unpin methods added. 2017-11-26 02:44:32 +02:00
Ian Byrd
83eb527fe5
Albums added, this commit resolves #103. 2017-11-25 16:22:13 +02:00
Ian Byrd
33e1846abd
Download() introduced. 2017-11-24 17:58:40 +02:00
Ian Byrd
79dccd7227
Endpoints for media introduced, Message.From -> Message.Sender 2017-11-24 17:24:07 +02:00
Ian Byrd
612ab345bd Improved inline API. TODO proper result types. 2017-11-24 16:11:07 +02:00
Ian Byrd
51ce032c7d
Update README.md 2017-11-24 15:26:11 +02:00
Ian Byrd
9aad0c4faa
OnAddedToGroup introduced. 2017-11-23 04:13:15 +02:00
Ian Byrd
cba0a331a8
Middlware introduced, resolves #100. 2017-11-21 17:56:09 +02:00
Ian Byrd
091bbc9a13 Administration tools, this resolves #43. 2017-11-21 17:29:44 +02:00
Ian Byrd
6b0a36e491
Update README.md 2017-11-21 15:26:59 +02:00
Ian Byrd
f823c31804
Update README.md 2017-11-21 14:57:32 +02:00
Ian Byrd
bb38a96232
Re-writing README, stage 1. 2017-11-21 14:55:46 +02:00
Ian Byrd
b4bec5b6f7
Command routing fix. 2017-11-21 14:40:49 +02:00
Ian Byrd
ddc9f75fb2
More documentation, little code changes. 2017-11-21 05:08:06 +02:00
Ian Byrd
52892914f3
Security measure: ignoring all messages starting with \a 2017-11-21 04:55:53 +02:00
Ian Byrd
2173ce9ad6
Documentation 2017-11-21 04:49:37 +02:00
Ian Byrd
420a0a1cf4
Fixing go test 2017-11-21 04:28:39 +02:00
Ian Byrd
337be69aa3
Routing system: final touches! 2017-11-21 04:22:45 +02:00
Ian Byrd
0cf9b9a101
Routing: Handle() and Endpoint introduced. 2017-11-21 03:50:44 +02:00
Ian Byrd
ba575e72e1
Start(), Update now supports edited messages / channel posts. 2017-11-21 02:00:58 +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
ff0015f004
Good news Edit() now works for all Editable text messages! 2017-11-18 20:47:04 +02:00