Commit graph

578 commits

Author SHA1 Message Date
Jannes Höke
a13245dfbf change 'wb' to 'rb' in certificate open call 2015-12-09 12:59:34 +01:00
Jannes Höke
6622ea3ec0 Release version 3.0.0 2015-12-08 00:07:21 +01:00
Jannes Höke
bcadfc5398 Release version 3.0.0 2015-12-07 23:49:19 +01:00
Jannes Höke
89ecb04a85 Catch URLError while getting updates 2015-12-07 23:45:21 +01:00
Jannes Höke
56ab40d94f increase time in test multiple messages 2015-12-01 21:58:39 +01:00
Jannes Höke
f5ac1ae067 debug message after processing update 2015-12-01 21:45:12 +01:00
Jannes Höke
23507202e8 Merge branch 'Balduro-boteventhandler' 2015-12-01 18:08:38 +01:00
Jannes Höke
185bff7117 update example 2015-12-01 18:06:42 +01:00
Gerd Augsburg
9f07900d99 Added Balduro to AUTHORS.rst and fixed line length 2015-12-01 15:16:04 +01:00
Gerd Augsburg
809fe4b74f Updated tests for start_webhook 2015-12-01 14:48:55 +01:00
Gerd Augsburg
8a4d5c5de7 Separate start_webhook and setWebhook
I think starting and setting the webhook should be two different tasks.
Because the internal webhook and the adress you see from outside can be
quite diffrent through apache etc. It provides more flexibility.
2015-12-01 14:11:27 +01:00
Jannes Höke
1976822dd0 Add documentation for Updater and Dispatcher 2015-12-01 01:01:28 +01:00
Jannes Höke
e60694a8cc update test_webhook and add test_webhook_no_ssl 2015-11-30 23:00:56 +01:00
Jannes Höke
14b4c1ac62 Allow starting webhook without SSL (issue #112) 2015-11-30 23:00:32 +01:00
Leandro Toledo
d5890d403b Merge pull request #109 from leandrotoledo/boteventhandler
Indrucing "Updater" and "Dispatcher"
2015-11-30 08:22:36 -02:00
Jannes Höke
ef569b68c6 update docs 2015-11-24 21:07:13 +01:00
Jannes Höke
628a4c4eac final renaming of files and flake8 2015-11-24 21:06:55 +01:00
Jannes Höke
83d2ca3aa7 assertIsNone(...) to assertTrue(None is ...) 2015-11-24 20:40:40 +01:00
Jannes Höke
29cdfe671e test removehandler methods 2015-11-24 20:34:38 +01:00
Jannes Höke
f21b6046c5 test error in handler, other webhook server functionalites 2015-11-24 19:35:02 +01:00
Jannes Höke
8090658ab4 log warning 2015-11-24 19:33:41 +01:00
Jannes Höke
f49f592f0d log warning 2015-11-24 19:33:03 +01:00
Jannes Höke
c2853fa1ef WebhookServer: Lock serve_forever() and shutdown() 2015-11-24 15:39:00 +01:00
Jannes Höke
e1f3f346bc Test for Update.idle() 2015-11-24 14:57:54 +01:00
Jannes Höke
1005ad57ce Improve signal handling 2015-11-23 17:40:39 +01:00
Jannes Höke
0b72acc7c8 handle SIGINT, SIGTERM and SIGABRT 2015-11-23 03:45:47 +01:00
Jannes Höke
8d267ed896 use logging 2015-11-22 19:20:16 +01:00
Jannes Höke
83812f3af6 rename boteventhandler.py to updater.py 2015-11-22 19:20:05 +01:00
Jannes Höke
658b5ff1c0 update tests 2015-11-22 19:16:49 +01:00
Jannes Höke
593153128c Update examples 2015-11-22 19:15:37 +01:00
Jannes Höke
d91f210f7c refactor BotEventHandler to Updater, improve documentation, add idle() method 2015-11-22 19:15:17 +01:00
Jannes Höke
65177e791f raise error instead of quietly exiting on bad SSL cert 2015-11-22 16:46:17 +01:00
Jannes Höke
15501e185b renamed broadcaster.py to dispatcher.py 2015-11-22 14:52:41 +01:00
Jannes Höke
1782d0d19b refactor Broadcaster to Dispatcher 2015-11-22 14:47:38 +01:00
Jannes Höke
88fbf3b5cf remove broadcaster argument from __init__ 2015-11-22 14:27:05 +01:00
Jannes Höke
c7a1d8dca3 test additional arguments 2015-11-22 14:08:33 +01:00
Jannes Höke
3e732a0736 fix multiple additional arguments 2015-11-22 14:07:20 +01:00
Jannes Höke
628e1b743a add bits of documentation 2015-11-22 13:58:40 +01:00
Jannes Höke
e4de3f00b8 Add optional handler argument 'args' and documentation on handlers 2015-11-22 13:57:59 +01:00
Jannes Höke
32c021fdd5 Don't create new bot when broadcaster is passed 2015-11-22 13:30:23 +01:00
Jannes Höke
a6e5a71e05 Check SSL-Certificate, if possible 2015-11-22 01:03:29 +01:00
Jannes Höke
4d87e236be Use random port for travis and py2&/py3 compability 2015-11-21 23:22:41 +01:00
Jannes Höke
29ab0556f0 test Webhook completed 2015-11-21 23:09:44 +01:00
Jannes Höke
fca8aee177 improve logging 2015-11-21 23:09:19 +01:00
Jannes Höke
6a80a33aef test for error on getUpdates and began to test webhook 2015-11-21 21:22:58 +01:00
Jannes Höke
7c9928c58f Let shutdown return immediately if server is not running 2015-11-21 21:22:11 +01:00
Jannes Höke
0cd7aa92ae more logging 2015-11-21 21:21:09 +01:00
Jannes Höke
6626d4534e test @run_async 2015-11-21 19:35:24 +01:00
Jannes Höke
6b309397e8 send less messages in more time so travis can take its time 2015-11-21 16:18:19 +01:00
Jannes Höke
618df51811 flake8 2015-11-21 16:04:06 +01:00