Jannes Höke
6b7144bbab
🚨 fix yapf
2017-02-27 14:53:28 +01:00
Jannes Höke
f8b13440c1
🔀 Merge thodnev/ptb into ptb/promises-with-exceptions
...
#529
2017-02-27 14:45:12 +01:00
Jannes Höke
a1ade408b0
🔀 Merge master into dec04
...
#483
2017-02-27 14:39:18 +01:00
Jannes Höke
2954ca2bad
🔀 Merge master into fix-460
...
#494
2017-02-27 14:33:58 +01:00
Eldinnie
34ebb7fe5a
Issue 520 ( #521 )
...
* stripping token of whitespaces before starting bot
* Line feed
* fixed chat parameter all_members_are_administrators
2017-02-27 14:27:06 +01:00
Eldinnie
78094b796d
Fix commandhandler ( #515 )
...
* stripping token of whitespaces before starting bot
* Line feed
* CommandHandler checks if message is for this bot
* CommandHandler checks if message is for this bot
- Added tests
* Fixed tests in test_conversationHandler to work with new commandhandler structure
* type in conversationhandler test
2017-02-27 14:26:53 +01:00
thodnev
fb378775a4
Changed promises to handle exceptions
2017-02-26 23:27:03 +02:00
代码家
264b9bd08c
add myself to authors ( #527 )
2017-02-26 13:57:50 +01:00
Noam Meltzer
d714da4b36
Merge pull request #500 from python-telegram-bot/bug470
...
Fix bad formatting of BadRequest exception message
Fixes #470
2017-02-25 22:40:49 +02:00
代码家
e39afad321
Add support for Socks5 proxy. ( #518 )
2017-02-25 20:47:56 +02:00
Rahiel Kasim
0507378509
fix typo's ( #523 ) and comment out failing sticker test
2017-02-18 16:03:50 +01:00
Rahiel Kasim
659ac52d92
fix tests (telegram cache file_id's)
2017-02-05 23:10:48 +01:00
Rahiel Kasim
924c241680
declare support for Python 3.6
2017-02-05 20:40:16 +01:00
Joscha Götzer
ac59f2f37c
Added methods to generate the original markdown/html string from entities contained in Message ( #507 )
...
* Added methods to generate the original markdown/html formatted string from the entities contained in an update
* Added
* Moved the html/markdown parsing methods to `Message`
* Moved extract_* methods from helpers to the appropriate location
* Refactored text_markdown and text_html
* Refactored text_markdown and text_html for efficiency
* Fixed method call in conversationhandler
* Fixed method call in handler
* Fixed `make test` command on windows systems
* Improved method documentation
2017-01-20 20:13:58 +01:00
Jannes Höke
86c8ebbfb7
fix tests
2017-01-16 00:28:47 +01:00
Jannes Höke
cd38bdbed5
bot.py: add delete_webhook alias
2017-01-16 00:28:26 +01:00
Jannes Höke
975d193441
Merge branch 'master' into dec04
2017-01-16 00:15:09 +01:00
Jannes Höke
728ffa432d
updater.py: add allowed_updates parameter to start_polling
2017-01-16 00:07:46 +01:00
Jannes Höke
8ac66698b5
test_bot.py: unit test setWebhook and deleteWebhook
2017-01-16 00:01:32 +01:00
Jannes Höke
c2c93f5d51
webhookinfo.py: add new parameters
2017-01-16 00:00:54 +01:00
Jannes Höke
fc9f36d4db
use deleteWebhook in Updater._bootstrap
2017-01-16 00:00:27 +01:00
Jacob Bom
e69e99ce23
Make everything default to None
...
This effectively removes most type checking from all optional variables... I'm not really sure that's what we want...
2017-01-11 19:41:39 +01:00
Jacob Bom
27b2fd64b7
More IDE friendliness
2017-01-09 19:29:05 +01:00
Jacob Bom
4dee785fba
Last of the classes I think
2017-01-09 19:16:28 +01:00
Noam Meltzer
4c7cc3a05b
Fix test_set_game_score3 - telegram changed something in their responses
2017-01-07 23:37:23 +02:00
Noam Meltzer
1bb5dd224b
Fix bad formatting of BadRequest exception message
...
fixes #470
2017-01-07 23:09:06 +02:00
Noam Meltzer
bd96771a7a
Fix typo
2017-01-07 23:05:58 +02:00
Noam Meltzer
191e442e59
test_jobqueue.py: Fix time delta calculations on several tests
2017-01-07 20:13:08 +02:00
Noam Meltzer
58dddfd9c3
Control the read timeout from telegram servers
...
refs #495
refs #364
2017-01-07 20:13:08 +02:00
Noam Meltzer
68a7d9fa1b
Make sure to hint Telegram servers that we reuse connections
...
refs #495
refs #364
2017-01-07 20:13:08 +02:00
Jacob Bom
38f2064639
Tricky empty string in __init__
2016-12-30 14:03:49 +01:00
Jacob Bom
651119fd69
Fix instances of empty strings in __init__ in example contributing code
2016-12-30 13:58:57 +01:00
Jacob Bom
232a0b0286
Fix instances of empty strings in __init__
...
Should partially fix #460
2016-12-30 13:57:59 +01:00
Anton Tagunov
48bcc3129a
set timeout for post message with file object ( #486 )
2016-12-29 12:01:58 +02:00
Joscha Götzer
6a01164897
ConversationHandler breaks when bot is also used in Channels ( #487 )
...
* ConversationHandler now ignores channel posts
2016-12-25 22:36:01 +02:00
Noam Meltzer
7f6b017ce2
Merge pull request #484 from python-telegram-bot/jobqueue-absolute-simple
...
JobQueue: Simpler API for adding jobs
2016-12-21 00:04:01 +02:00
Jannes Höke
09cb33f52d
rename Job.is_removed to removed
2016-12-20 22:37:36 +01:00
Noam Meltzer
423251f66c
Change Job.is_removed to be a property instead of a method
2016-12-20 00:14:03 +02:00
Noam Meltzer
ed1785981d
disable test_send_contact
2016-12-20 00:12:57 +02:00
Hugo Hakim Damer
a8fecc527d
Prevented modifications to the request object's original data ( #454 )
...
fixes #357
2016-12-20 00:07:35 +02:00
Yan
c3984e1bf1
Download changed ( #459 )
...
* DownBytes added
* File.downbyte changed
* Changed file.download();Remove downbyte()
* Fixed typo
* add docstring, make custom_path and out mutually exclusive, rename downbytes to retrieve
* remove trailing whitespace
* run pre-commit hooks
2016-12-18 03:05:00 +01:00
Noam Meltzer
93bf21a0a4
jobqueue.py: stability improvments
...
- Job.job_queue is now weakref.proxy reducing the risk of cyclic
pointers preventing Job object from being deleted.
- JobQueue._put(): raise if both next_t and job.interval are None
- Don't put repeating job back to queue if user had disabled it was
disabled during the time of execution.
- New method: Job.is_removed() - promising a consistent API (instead of
access to private member Job._remove)
- Documentation fixes.
2016-12-15 00:17:57 +02:00
Jannes Höke
cbf93e1046
switch to run_x naming scheme
2016-12-14 18:01:44 +01:00
Jannes Höke
a1a8628c75
bot.py: fix argument order, setWebhook: make 'url' and 'webhook_url' mutually exclusive
2016-12-14 17:38:06 +01:00
Jannes Höke
d5ce32c672
removed Job.run_immediately and related code
2016-12-14 17:15:52 +01:00
Jannes Höke
09ddc1b1a8
DAAAANGER ZOOOONE
2016-12-14 16:27:45 +01:00
Jannes Höke
c7cd379016
jobqueue.py: move the check for job.interval types into Job.__init__
2016-12-14 06:30:18 +01:00
Jannes Höke
84f3bc0c79
README.rst: update api support date
2016-12-14 00:51:43 +01:00
Jannes Höke
92dc9b81ce
bot.py: implement changes of december 04 (bot api 2.3.1)
2016-12-14 00:50:34 +01:00
Jannes Höke
8ead72e3ef
jobqueue: add support for specifying next_t in datetime.datetime or datetime.time
2016-12-13 23:38:13 +01:00