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
Jannes Höke
6b457bada5
use keepalive for connection pool
2016-05-31 13:45:43 +02:00
Jannes Höke
74283bd414
use HTTPSConnectionPool instead of PoolManager
2016-05-30 17:12:50 +02:00
Jannes Höke
41f6591ac6
more sensible logging
2016-05-30 17:12:27 +02:00
Juan Madurga
073d7949dc
fix callbackquery to_dict
2016-05-30 15:59:45 +02:00
Jannes Höke
dd91ce1f39
use single queue for thread pool, initialize connection pool with n+3
2016-05-30 13:09:23 +02:00
Jannes Höke
57759d8e6d
[drunk] use actual thread pool and queue new functions into the pool instead of starting new threads every time
2016-05-30 03:16:33 +02:00
Noam Meltzer
574fc8cddf
urllib3: validate https certificate
2016-05-30 01:05:19 +03:00
Noam Meltzer
3076dfc086
use urllib3 instead of urllib(2)
2016-05-30 01:05:19 +03:00
Jannes Höke
41432f5b02
bump version to v4.2.0
2016-05-28 22:49:15 +02:00
Rahiel Kasim
f31bd91673
Merge pull request #305 from python-telegram-bot/move-botan
...
move botan from utils to contrib
2016-05-28 21:32:07 +02:00
Noam Meltzer
7e7acdeb23
set default network_delay to 5 seconds
...
fixes #309
2016-05-28 19:34:16 +03:00
Jannes Höke
25bcfa9b35
add constants for Chat.type and ChatMember.status
2016-05-28 16:51:44 +02:00
Jannes Höke
ff00e211d7
include in warning that Py2.7 will still be supported
2016-05-28 16:44:39 +02:00
Jannes Höke
d40f0a8309
update update_queue and job_queue docstrings on all handlers
2016-05-28 16:04:19 +02:00
Jannes Höke
783f9c375c
move job_queue kwarg to end
2016-05-28 14:21:39 +02:00
Jannes Höke
406303d6bb
refactor: running -> _running, next_peek -> _next_peek
2016-05-28 13:48:30 +02:00
Jannes Höke
2534e0df9b
allow jobs to be ran outside of jobqueue
2016-05-28 13:41:23 +02:00
Rahiel Kasim
b06983a94a
let python 2 find the contrib module
2016-05-28 09:27:17 +02:00
Rahiel Kasim
c8497424b7
move botan to contrib
2016-05-28 09:12:10 +02:00
Jannes Höke
a0bb5730c6
add allow_edited parameter to MessageHandler and CommandHandler
2016-05-27 11:07:06 +02:00
Leandro Toledo
9a13de4a96
Merge remote-tracking branch 'origin/master' into bot2.1
...
Conflicts:
telegram/bot.py
tests/test_bot.py
2016-05-26 16:15:50 -03:00
Noam Meltzer
561f1c3f02
bot: validate token does not contain white spaces ( #306 )
...
in addition move validation code from validate.py into bot.py and delete
the former file
2016-05-26 22:09:14 +03:00
Leandro Toledo
3907e64966
Adds telegram.utils.botan back using deprecate
2016-05-26 14:13:27 -03:00
Rahiel Kasim
1abbca3324
bot.py: fix snake_case alias
2016-05-26 15:32:02 +02:00
Jannes Höke
bb165b6acf
add pass_job_queue parameter to all handler classes
2016-05-26 14:39:11 +02:00
Jannes Höke
41daccce07
minor comments and formatting
2016-05-26 14:02:52 +02:00
Jannes Höke
786216305c
Add context parameter in Job class #281
2016-05-26 13:55:56 +02:00
Leandro Toledo
663fa0013d
merge master
2016-05-25 22:09:18 -03:00
Leandro Toledo
37c7af2e14
Add docstrings #302
2016-05-25 21:41:12 -03:00
Leandro Toledo
e70625772c
Keeps backwards compatibility to BadRequest #302
2016-05-25 21:24:29 -03:00
Leandro Toledo
1e398821a0
Introducing telegram.error.BadRequest and testLeaveChat testcase #302
2016-05-25 21:15:17 -03:00
Jannes Höke
b3142d2974
yapf
2016-05-25 23:57:29 +02:00
Jannes Höke
3aedd78e29
make job queue API similar to the dispatcher, add new functionality
2016-05-25 23:36:41 +02:00
Rahiel Kasim
c4d5eff9f3
move botan from utils to ext
2016-05-24 23:40:09 +02:00
Leandro Toledo
0b2fd120d8
Due kwargs I had to change the factory class in favor of InputLocationMessageContent #302
2016-05-23 21:09:07 -03:00
Leandro Toledo
ab2f6e13c9
Add kwargs to API calls #302
2016-05-23 20:43:17 -03:00
Leandro Toledo
108e4264fc
Add user to MessageEntity #302
2016-05-23 20:31:36 -03:00
Leandro Toledo
68b5562c49
Add edit_date to Message #302
2016-05-23 20:28:36 -03:00
Leandro Toledo
e50a3622e1
Add edited_message to Update #302
2016-05-23 20:24:43 -03:00
Leandro Toledo
d7e226ec0f
Add new Bot methods and ChatMember class #302
2016-05-23 20:22:31 -03:00
leandrotoledo
c7db9a96cd
Set split_before_logical_operator to True
2016-05-23 17:19:35 -03:00
Jannes Höke
dc27ff41ef
bump version to 4.1.2
2016-05-22 13:01:14 +02:00
Jannes Höke
68ec73afb6
use kwargs on messageentity
2016-05-22 12:58:19 +02:00
Jannes Höke
d028d4edd0
bump to 4.1.1
2016-05-16 16:05:02 +02:00
Jannes Höke
4d770843cc
use non-deprecated methods
2016-05-16 15:02:51 +02:00
leandrotoledo
ac55ba007e
Bumping version to v4.1 [ci skip]
2016-05-15 20:05:38 -03:00
Leandro Toledo
49122d6a99
Remove \ from base code #259
2016-05-14 23:26:56 -03:00
Leandro Toledo
d445d35ceb
Running yapf for codebase #259
2016-05-14 22:46:40 -03:00
Leandro Toledo
703b8d1301
Adding more pre-commit hooks and testing InputFile #259
2016-05-14 22:24:35 -03:00
Leandro Toledo
56b1d4f5ce
Merge pull request #265 from python-telegram-bot/snakes
...
rename methods to snake_case
2016-05-14 10:56:24 -03:00
Jannes Höke
a18640a8d3
remove str conversion for emoji
2016-05-12 00:16:29 +02:00
Jannes Höke
fdc3ac0cc5
copy paste mishap
2016-05-11 23:37:46 +02:00
Jannes Höke
d881fa6a5f
add forward_from_chat field to message
2016-05-11 23:22:05 +02:00
Jannes Höke
c551d71735
add emoji field to sticker
2016-05-11 23:19:35 +02:00
Jannes Höke
bee3d881d1
location docstring fix
2016-05-11 23:07:32 +02:00
Jannes Höke
6ec81dd552
move cleaning updates to bootstrapping phase ( #282 )
2016-05-11 00:58:55 +03:00
Rahiel Kasim
6e9f30ca6e
fix merge conflict snakes
2016-05-02 16:37:45 +02:00
Jannes Höke
252cafb04c
fix docs for inlinekeyboardmarkup #277
2016-05-02 14:19:06 +02:00
Jannes Höke
10a98211f8
bump version to 4.0.3
2016-05-01 22:13:27 +02:00
Rahiel Kasim
99c9544a27
Merge pull request #273 from python-telegram-bot/inlinequery_location
...
Add location attribute #272
2016-05-01 21:27:19 +02:00
Jannes Höke
0e0611767a
add location attribute #272
2016-05-01 20:08:34 +02:00
Djaler
4b0be65a76
Fix Bot.getUpdates() docstring
2016-05-01 15:25:07 +03:00
Rahiel Kasim
5971cb35f8
fix merge conflict snakes with master
2016-04-30 14:56:48 +02:00
Jannes Höke
62c651d167
bump version to 4.0.2
2016-04-29 19:31:45 +02:00
Jannes Höke
41e457f5ed
Merge pull request #269 from python-telegram-bot/buttons
...
support str and KeyboardButton for reply_markup
2016-04-29 19:29:12 +02:00
Jannes Höke
d940afa718
merge master into cr4.0
2016-04-29 18:37:41 +02:00
Rahiel Kasim
a327e9d6ff
support str and KeyboardButton for reply_markup
2016-04-29 17:42:45 +02:00
Rahiel Kasim
5e5510d42b
add deprecation warning for Python 2.6 users
2016-04-28 17:56:03 +02:00
Rahiel Kasim
c0489db17c
fix import of deprecate function
2016-04-28 14:47:56 +02:00
Rahiel Kasim
592352c849
dispatcher/*handler methods to snake_case + deprecation warnings
2016-04-28 14:29:27 +02:00
Rahiel Kasim
9d367e9f2c
telegram.utils.deprecate: helper module to facilitate deprecation
2016-04-28 14:24:12 +02:00
Rahiel Kasim
ec15e866be
add snake_case aliases for CamelCase methods
2016-04-28 12:20:42 +02:00
Noam Meltzer
0c74b3cfb9
bot.py + request.py: network_delay is unique for getUpdates
2016-04-28 01:41:32 +03:00
Noam Meltzer
0ca3ef7a38
utils.request: clean imports using feature.moves
2016-04-28 01:41:32 +03:00
Noam Meltzer
e160355190
remove unused imports, use future for urllib imports
2016-04-28 01:41:32 +03:00
Jannes Höke
865bba3f3e
bump version to 4.0.1
2016-04-27 01:17:47 +02:00