Noam Meltzer
2501036034
fix documentation
2016-07-19 23:42:11 +03:00
Noam Meltzer
1a7c823187
bot.py: replace @info decorator with property lazy load
...
refs #262
2016-07-19 22:38:45 +03:00
Jannes Höke
834bf192b9
Bump version to v5.0.0
2016-07-15 01:48:11 +02:00
Jannes Höke
ad3eec2af8
ConversationHandler ( #331 )
...
* initial commit for conversationhandler and example
* implement simple Promise for run_async/conversationhandler
* refactor Promise._done to done
* add handling for timed out Promises
* correctly handle promises with None results
* fix handling tuple states
* update comments on example
* Added a first test on the ConversationHandler.
* Fixed a small typo.
* Yapf'd.
* add sphinx doc for conversation handler
* fix title for callbackqueryhandler sphinx docs
2016-07-15 01:30:54 +02:00
Rahiel Kasim
04a871aff5
introduce constants module ( #342 )
2016-07-14 21:48:31 +02:00
Jannes Höke
81a755a7d8
Merge branch 'urllib3_fix_proxy_auth'
2016-07-13 15:09:23 +02:00
Noam Meltzer
6016aca0ba
Bump version to v4.3.4
2016-07-12 23:34:49 +03:00
Noam Meltzer
7c908db901
urllib3: can now connect through proxies which require auth
...
fixes #343
2016-07-12 23:31:38 +03:00
Noam Meltzer
d192b385ea
dispatcher: add comment to describe the reason for conpool size
2016-07-12 21:58:27 +03:00
Jannes Höke
f0b2028e3f
Merge pull request #344 from python-telegram-bot/silence-webhook-logging
...
Move webhook handler logs to logging at DEBUG level
2016-07-12 14:35:14 +02:00
Mikki Weesenaar
f443003408
Small change in the documentation.
2016-07-12 13:45:37 +02:00
Jannes Höke
afc36a235b
move webhook handler logs to logging at DEBUG level
2016-07-11 23:44:40 +02:00
Noam Meltzer
b76337de87
__main__.py: assist with creating issues on github
...
usage:
python -m telegram
and copy/paste the output
2016-07-09 14:40:53 +03:00
Noam Meltzer
6afee6e0bd
Merge pull request #340 from python-telegram-bot/v4.3.x
...
urllib3: now supports proxy
2016-07-08 23:53:56 +03:00
Jannes Höke
27e57bbf58
Bump version to v4.3.3
2016-07-08 22:13:46 +02:00
Noam Meltzer
b3e42c3e20
urllib3: now supports proxy
...
fixes #336
2016-07-08 22:33:37 +03:00
Jannes Höke
c2cce40299
Merge branch 'use-timeout'
2016-07-04 21:56:26 +02:00
Jannes Höke
a2ed7b26f1
Bump version to v4.3.2
2016-07-04 21:52:00 +02:00
Jannes Höke
89a3dc8372
use urlopen timeout
2016-07-04 21:40:31 +02:00
Jannes Höke
9fd298a393
Merge pull request #307 from python-telegram-bot/jobqueue-rework
...
Make job queue API similar to the dispatcher, add new functionality
2016-06-29 16:20:43 +02:00
Jannes Höke
ecbc268781
Bump version to v4.3.1
2016-06-29 15:53:52 +02:00
Jannes Höke
57efde5e0f
Bump version to v4.3
2016-06-28 13:35:42 +02:00
Jannes Höke
31073101a3
yapf
2016-06-24 19:22:49 +02:00
Noam Meltzer
1e0ebe89f3
JobQueue: minimize the amount of places changing self.__tick state
...
- start the jobqueue (by default) during __init__() instead of during
put()
- protect self._next_peek and self.__tick with a Lock
- rename self._start() to self._main_loop()
- stop() is now blocking until the event loop thread exits
2016-06-24 19:35:54 +03:00
Noam Meltzer
f65b6911ea
JobQueue: use class name for the logger name
2016-06-24 19:13:40 +03:00
Noam Meltzer
02af1ea803
jobqueue: cosmetic fixes
2016-06-24 19:13:40 +03:00
Jannes Höke
c4a8ee5175
Merge branch 'master' into jobqueue-rework
...
Conflicts:
tests/test_jobqueue.py
2016-06-20 05:32:15 +02:00
Jannes Höke
738e3213a7
Merge branch 'master' into jobqueue-rework
2016-06-20 00:49:01 +02:00
leandrotoledo
b41f7e3e79
Code style with latest yapf
2016-06-19 17:50:02 -04:00
Jannes Höke
7635bc0eec
comments, lock thread pool, while 1 and snake_case everywhere
2016-06-19 23:46:34 +02:00
Jannes Höke
703bece155
set loglevel of urllib3 to WARNING by default
2016-06-19 23:40:34 +02:00
Noam Meltzer
5b91194cc7
new yapf version, new cosmetic fixes
2016-06-18 20:05:10 +03:00
Noam Meltzer
494a7ec1e4
ypaf fixes
2016-06-18 19:57:11 +03:00
Noam Meltzer
fc05d3a626
switch back to PoolManager
...
telegram servers might send a reponse with HTTP 302 (redirect) to
another hostname. in such case HTTPSConnectionPool will fail to do the
job
2016-06-18 19:50:18 +03:00
Noam Meltzer
a814e9de6b
make sure to stop conpool between sensitive unitests
2016-06-18 00:50:44 +03:00
Noam Meltzer
e479c7f25e
type hinting (cosmetic fix)
2016-06-17 23:59:32 +03:00
Noam Meltzer
a30411c9fa
make sure to remove the stopped dispatcher threads from ASYNC_THREADS
2016-06-17 23:58:22 +03:00
Noam Meltzer
881d1d0e25
fix/hack Updater.stop() not working on extreme cases
...
during test_bootstrap_retries_fail() there is an exception raised (by
design): TelegramError('test')
For a reason I haven't managed to pinpoint the above exception in its
precise timing caused the Updater to be left in a state which is
'self.running == False', but the dispatcher threads already initialized.
This patch identifies this extreme case and makes sure to go over the
stop procedure.
2016-06-17 23:53:18 +03:00
Noam Meltzer
cb6ddfded5
Merge remote-tracking branch 'origin/master' into urllib3
2016-06-17 17:54:04 +03:00
Noam Meltzer
bda0244ed8
updater: fix print in log
2016-06-17 16:52:25 +03:00
leandrotoledo
897f9615f0
Bump version to v4.2.1
2016-06-10 09:44:17 -04:00
leandrotoledo
bbbc622517
Adds @message decorator to editMessageText #320
2016-06-03 13:28:29 -04:00
Noam Meltzer
1f5601dae2
fix SyntaxWarning
2016-06-01 22:38:08 +03:00
Noam Meltzer
3608c2bbe5
dispatcher: if connection pool is already initialized raise exception
...
this will better protect the user from wrong usage
2016-06-01 22:30:34 +03:00
Noam Meltzer
c28763c5be
dispatcher: cosmetic fix
2016-06-01 22:30:33 +03:00
Noam Meltzer
dd8b6219b9
dispatcher: a little performance improvment
2016-06-01 22:30:33 +03:00
Noam Meltzer
78f9bdcac9
dispatcher: pep8 style fix
...
globals are supposed to be upper case
2016-06-01 22:30:09 +03:00
Jannes Höke
b08d41d0ff
formatting
2016-05-31 15:35:40 +02:00
Jannes Höke
de2d732135
Merge branch 'master' into jobqueue-rework
...
Conflicts:
README.rst
telegram/ext/commandhandler.py
telegram/ext/messagehandler.py
2016-05-31 15:34:36 +02:00
Jannes Höke
1ff348adbb
issue warning if connection pool was initialized before Dispatcher
2016-05-31 13:47:43 +02:00