Jacob Bom
4426eb0c61
Add VideoNote
2017-05-20 19:25:24 +02:00
Jacob Bom
d4f2f2e077
Getting instead of popping
...
I really think we should be popping and I'm unable to see why it makes our tests fail, but for now.. rolling back.
2017-05-20 19:02:01 +02:00
Jacob Bom
76db279624
We have to send and array... that's new...
2017-05-20 18:46:39 +02:00
Jacob Bom
a97da5cb20
Sooo apparently python 2 doesn't like ‘ (\xe2)
2017-05-20 17:36:10 +02:00
Jacob Bom
5f96c507b9
Payment ids should be unique... probably
2017-05-20 17:31:46 +02:00
Jacob Bom
402e1381bb
OrderInfo can be completely empty
...
In which case it should still be an OrderInfo not None
2017-05-20 17:31:46 +02:00
Jacob Bom
b276b06b31
Pop instead of get if our name doesn't match telegrams (user/from_user)
2017-05-20 17:31:46 +02:00
Jacob Bom
b69ecc3015
Fix import order
2017-05-20 17:31:46 +02:00
Jannes Höke
6479e15578
Bump version to v6.0.0
2017-05-19 21:49:01 +02:00
Jannes Höke
5dd3a660e3
forgot some escaping
2017-05-19 20:57:52 +02:00
Eldinnie
e2a651afc8
Allow edited as seperate input ( #608 )
...
* Allow edited as seperate input
In short made it possible to tune messagehandler more to your wishes. and choose exactly what updates to receive. messages, edited_message or channel_post or a combination.
- Added the edited_updates argument to MessageHandler
- Added DepricationWarning when using allow_edited
- replaced _is_allowed_message and _is_allowed_channel_post with _is_allowed_update
- Modified tests to reflect new way
* oops
Spelled deprecation wrong
made an error in the _is_allowed_update.
* Python 2 does not have assertWarns.
* remove unneeded statements
2017-05-19 20:26:10 +02:00
Jacob Bom
834c1ab3c5
Merge branch 'master' into payment
2017-05-19 20:25:46 +02:00
Evgen
33512ffd2e
Improved CommandHandler ( #613 )
...
* Improved CommandHandler
Now you can pass list of commands instead of one command
* Added tests for list of commands
* Return backward compatibility
Renamed `commands` to `command` in CommandHandler
* Added test for a command not in the list
* Fixed py2 unicode command support in `CommandHandler`
2017-05-19 20:21:37 +02:00
Evgen
c2c5452829
Updated docstring in deleteMessage methods ( #618 )
...
* Removed "undocumented" notice
* Updated docstring according to Bot API documentation
* Removed extra line
2017-05-19 20:21:20 +02:00
Jacob Bom
c78d697b0e
Add invoice and successful_payment to Message
2017-05-19 20:06:58 +02:00
Jacob Bom
2929c76248
Fix docstring for Message
2017-05-19 20:04:24 +02:00
Jacob Bom
034bcf0895
Add pay inlinekeyboardbutton type
2017-05-19 19:49:31 +02:00
Jacob Bom
8be57198b4
New payment bot methods
...
sendInvoice, answerShippingQuery, and answerPreCheckoutQuery
2017-05-19 19:46:42 +02:00
Jacob Bom
8e62b02ff6
Add new payment classes
...
Invoice, LabeledPrice, OrderInfo, PreCheckoutQuery, ShippingAddress, ShippingOption, ShippingQuery and SuccessfulPayment
2017-05-19 19:41:06 +02:00
Jannes Höke
9aa5522694
sanitize html and markdown in Message.text_html and text_markdown ( #621 )
...
* sanitize html and markdown in Message.text_html and text_markdown
* add import for escape_html
2017-05-19 19:11:40 +02:00
evgfilim1
578627feca
Fixed and added some type hints in docstrings
2017-05-17 21:41:08 +05:00
Jacob Bom
1b7f83625c
Update copyright notice to include 2017
...
Not strictly needed, but it helps show that the project is being actively
developed which I find important.
2017-05-15 00:36:49 +03:00
Jacob Bom
da01601ff9
Add equality rich comparision operators to telegram objects ( #604 )
...
fixes #587
2017-05-15 00:29:31 +03:00
Evgen
752b64769d
Fix for #601 ( #603 )
2017-05-12 17:42:02 +02:00
Evgen
f3b75d95c4
Implemented undocumented 'deleteMessage' method ( #602 )
...
* Implemented `Bot.delete_message()` and `Message.delete()` methods
* Added tests for `Bot.delete_message()` and `Messsage.delete()`
* Added myself to `AUTHORS.rst`
* Using `assertRaisesRegexp` instead of `assertRaisesRegex` in tests
Now tests can run on Python 2.7 without raising 'AttributeError'
* Fix docstring
Added a warning to the docstring describing that this method is undocumented and not guaranteed to work
2017-05-12 17:40:57 +02:00
Eldinnie
f3aca42e69
pass errormessage to Unauthorized ( #597 )
2017-05-12 17:38:36 +02:00
Rahiel Kasim
9f3afa5fa2
prefer snake_case for telegram.Bot methods
2017-05-07 16:09:58 +02:00
Joscha Götzer
cdf36a20b7
Fixed deprecation warning ( #586 )
2017-04-29 19:56:27 +02:00
manorom
c5598b96bc
Fix Bug #571 (second try) ( #574 )
...
* Fix Bug #571
ConversationHandler will not process CallbackQuery if per_chat=True and
the CallbackQuery has no message attached to it (as is the case with
buttons on inline results)
* Adds test case for CallbackQuery without Chat
2017-04-29 15:51:48 +02:00
Noam Meltzer
ca4351079f
Merge pull request #542 from python-telegram-bot/urllib3-vendor-beta
...
Vendor (embed) urllib3 with our package.
2017-04-29 16:38:44 +03:00
Jannes Höke
c7dbdce3dc
Allow CallbackQueryHandler in ConversationHandler with per_mess… ( #561 )
...
* 🐛 Allow CallbackQueryHandler in ConversationHandler with per_message=False
but show a warning #556
* ⏪ warning logs instead of ValueErrors
#556
2017-04-29 15:15:17 +03:00
Noam Meltzer
fe5ae8ed84
request.py: Fix warning on stderr irrelevant for most users
...
Attempting to import urllib3.contrib.socks may fail if PySocks is not
installed. Most users won't care for that.
Only import that module if the user requested to use a socks proxy.
2017-04-29 14:42:36 +03:00
Noam Meltzer
a6b28b022a
Merge remote-tracking branch 'origin/master' into urllib3-vendor-beta
2017-04-29 14:09:45 +03:00
John Yong
1d905d567c
GAE support via urllib3.contrib.appengine module #334
2017-04-27 16:59:35 +08:00
Jannes Höke
4541476143
enforce urllib3==1.20 ( #580 )
...
* 🚑 enforce urllib3==1.20
#579
* 🚑 Bump version to v5.3.1
#579
2017-04-25 17:26:54 +02:00
Dickson Tan
11a3de67ea
Remove deprecated code #408 part 1 ( #564 )
...
* Remove non-pep8 dispatcher methods
* callbackqueryhandler: Remove non-pep8 compliant methods
* commandhandler: Remove non-pep8 compliant methods
* handler: Remove non-pep8 compliant methods
* messagehandler: Remove non-pep8 compliant methods
* stringcommandhandler: Remove non-pep8 compliant methods
* stringregexhandler: Remove non-pep8 compliant methods
* test_updater: fix usage of deprecated methods
* dispatcher: fix accidental misalignment of comments by pre-commit hook
* Add myself to list of contributors
2017-04-25 10:39:02 +02:00
Eldinnie
90bf26c09b
Issue 566 ( #577 )
...
* stripping token of whitespaces before starting bot
* Line feed
* - Case insensitivity for commandhandler
- Ignore pylint case on windows.
2017-04-25 10:37:06 +02:00
Eldinnie
b5b09884b1
Group filters ( #575 )
...
* stripping token of whitespaces before starting bot
* Line feed
* show exception that's caused (fixes flake8 failing)
* Add private/group filters
Add filters:
- Filters.private (for messages in private chats)
- Filters.group (for messages in group chats)
* use constants
2017-04-23 23:22:05 +02:00
Iulian Onofrei
44d7bad11c
Update constants.py ( #553 )
...
Add maximum inline query results constant
2017-03-29 17:31:26 +02:00
Jacob Bom
ad5f009ce7
Add the ability to invert (not) filters ( #552 )
...
* Add InvertedFilter and use it from __invert__
* Add docstrings and __str__ for inverting filters
* Tests for inverted filters
2017-03-28 18:38:44 +02:00
Jannes Höke
8fe6e13ff2
Update handlers ( #532 )
...
* 🔨 Refactor `Update.extract_` methods to `Update.effective_` properties
#507
* ✨ Update RegexHandler to work with edited messages and channel posts
* 🔨 messagehandler.py: refactor channel_posts_updates -> channel_post_updates
* 🔨 handler.py: use effective_ properties
2017-03-26 14:36:45 +02:00
Jannes Höke
ff39e2436e
Refactor Update.extract_
methods to Update.effective_
properties ( #531 )
...
* 🔨 Refactor `Update.extract_` methods to `Update.effective_` properties
#507
* 🔨 handler.py: use effective_ properties
2017-03-26 14:36:34 +02:00
Alex Hirschfeld
5b14b134dc
Added user defined function for updater's signalHandler ( #512 )
...
* Added user defined function for updater's signalHandler
* Added test_userSignal to test_updater
* Added test_userSignal to test_updater
Fixing paren
2017-03-26 14:36:13 +02:00
Jannes Höke
5897affa07
add missing allowed_updates to start_webhook ( #549 )
...
* 🐛 add missing allowed_updates to start_webhook
#548
* 🔨 fix webhook-related tests
#548
2017-03-25 12:46:37 +01:00
Jannes Höke
9982f3c908
🐛 fix message date parsing for messages without a timestamp ( #550 )
...
#546
2017-03-25 12:15:37 +01:00
thodnev
22142e7cbd
Introduce MessageQueue ( #537 )
...
* Introduce MessageQueue
* minor documentation and terminology fixes according to the review
* minor documentation and terminology fixes according to the review
* minor documentation and terminology fixes according to the review
* pep8 fix
2017-03-15 17:35:33 +01:00
Noam Meltzer
4c8d1c9a5e
Fix Bot.sendDocument
2017-03-11 23:55:26 +02:00
Noam Meltzer
2b930c221d
Sane default for sending files timeout
2017-03-11 16:23:43 +02:00
Jannes Höke
2a1d40bd28
🚧 manipulate sys.path to prefer vendor urllib3
...
#533
2017-03-09 23:29:15 +01:00
Jannes Höke
1d4464ddbd
➕ add git submodule to vendor urllib3
...
#533
2017-03-09 23:16:58 +01:00
Jose Luis Salazar Gonzalez
e78d11a99b
Add filters to commandHandler ( #536 )
...
* Add filters to commandHandler
* Add commandHandler tests with filters
* Add myself to authors
2017-02-28 15:44:55 +01:00
Jannes Höke
cc73469dab
Issue 502 ( #530 )
...
* conversationhandler.py: add per_chat, per_user and per_message
* test_conversationhandler.py: test case per_user=False
* test_conversationhandler.py: add test for callbackqueryhandlers
* ✏️ Fix accidental typo in logging format
2017-02-27 17:52:58 +01:00
Jannes Höke
853d823964
🚨 promise.py: remove pylint warning
...
#529
2017-02-27 16:23:04 +01:00
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
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
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
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
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
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
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
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
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
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
Jannes Höke
71530f404d
Bump version to v5.3.0
2016-12-11 23:51:51 +01:00
Jeong Arm
c5f9e53d44
Add "reply" filter ( #465 )
...
* Add "reply" filter
This filter will filter messages that reply to other's message.
* Add test for "reply" filter
* Add "Kjwon15" to AUTHORS.rst
2016-12-11 22:45:51 +01:00
Noam Meltzer
acf1541395
Botapi2.3 ( #471 )
...
* New fields channel_post and edited_channel_post for Update
refs #468
* setGameScore() changes
- Changed behaviour: messages with high scores will be update with new
high scores by default. (documentation fix)
- Use (new) disable_edit_message in setGameScore to disable the above new
behaviour.
- The edit_message parameter from setGameScore is no longer in use. For
backward compatibility, it will be taken into account for a while,
unless disable_edit_message is passed explicitly.
refs #468
* New field forward_from_message_id for Message.
refs #468
* New parameter cache_time for answerCallbackQuery
refs #468
* replykeyboardhide renamed to replykeyboardremove
refs #468
* Unitests for updated setGameScore semantics
refs #468
* Backward compatibility for ReplyKeyboardHide
refs #468
* Fix docstrings of wrapper methods in Message
* Unitest new field forward_from_message_id of Message
refs #468
* Fix testMaxCaptionLength
Telegram servers changed their behaviour - now they truncate a long
caption instead of returning an error.
* MessageHandler: Added support for channel posts
* Fix flake8 complaints in a manner which yapf will like it too.
* fix rst markup
2016-12-11 22:44:52 +01:00
Jacob Bom
906a1b8d7d
message.edit_reply_markup now correctly edits reply_markup ( #473 )
2016-12-08 13:23:51 +01:00
lisitsky
a2fddbe85c
Fix telegram API change, returning '404 Not found' ( #461 )
...
* Fix telegram API change, returning '404 Not found' with raising own TelegramError rather native exception
* Change exception to InvalidToken in test and request util
* Added myself to AUTHORS. Thx for appreciation :)
2016-11-09 14:36:42 +01:00
Wesley Gahr
68e87db909
Job queue time units ( #452 )
...
* Adding timeunit and day support to the jobqueue
* Adding tests
* Changed the file permission back to 644.
* Changed AssertEqual argument order to (actual, expectd).
* Removed the TimeUnit enum and unit param, instead use datetime.time for interval.
* Removing the TimeUnits enum and unit param in favour of optionally using a datetime.time as the interval.
* Removing the TimeUnits enumeration, forgot the remove it in the last one.
* Removed some old docstrings refering to the TimeUnits enum.
* Removed the old TimeUnits import.
* Adding some error handling for the 'days' argument (only a 'tuple' with 'Days')
* Writing the error message directly in the exception.
* Moving a debug statement wrongfully saying a job would be running on days it wouldn't.
* Writing error messages directly in the exceptions instead of making an extra variable.
* Replacing datetime.time in favour of datetime.timedelta because of the get_seconds() method.
* Adding error handling for the method .
* Splitting the tests up in multiple ones, no float test because I haven't found a reliable way to test it.
* Excluding .exrc file.
* Removing \ at EOF of ValueError.
* Replacing Enums with plain new-style classes.
* Using numbers.number to check for ints/floats instead of seperate int/float checks.
* Fixing typo, number -> Number.
* Changed lower_case Days attributes to UPPER_CASE.
* Different formatting for Days class, removed the get_days function in favour of a tuple.
* Removed redundant function get_days.
* Edited the docstring for next_t to also take datetime.timedelta.
* Removed for-loop in favour of any().
* Changed docstring for interval.
* Removed debug print.
* Changing some docstrings.
* Changing some docstrings (again).
2016-11-08 23:39:25 +01:00
Jannes Höke
65061f8a99
[ci skip] docs: add all missing classes
2016-11-01 09:01:36 +01:00
Jannes Höke
aa3ca38837
Sphinx restructuring: Now builds PDF and better HTML docs ( #449 )
...
* update sphinx source files to properly build latexpdf and improve html build
* fix docstrings and sphinx sources to get rid of warnings
* add telegram.contrib.rst
2016-11-01 06:53:51 +01:00
Jannes Höke
2786252a51
Bump version to v5.2.0
2016-10-25 20:10:36 +02:00
neutronnnate
761547e71d
Issue 422: Fixed start_polling with clean=True can cause 'Too Many Requests' error from Telegram. ( #437 )
2016-10-25 19:30:05 +02:00
Jannes Höke
10bdf8212c
Add pass_user_data and pass_chat_data to Handler ( #436 )
...
* initial commit for user_data
* add chat_data and use defaultdict
* fix chat_data copy-paste error
* add test for user_data and chat_data
* fix case where chat is None
* remove braces from import line
2016-10-25 19:28:34 +02:00
Kristofer Kirss
45936c9982
Remove deprecated argument from Updater docstring ( #444 )
...
Argument (job_queue_tick_interval) was removed with commit 3aedd78
but the docstring in updater.py wasn't.
2016-10-23 00:31:44 +03:00
Jacob Bom
960862ccb1
Merge branch 'master' into october3
...
# Conflicts:
# telegram/bot.py
# telegram/callbackquery.py
# telegram/chat.py
# telegram/ext/messagehandler.py
# telegram/inlinekeyboardbutton.py
# telegram/inlinequeryresultcachedaudio.py
# telegram/message.py
# tests/test_filters.py
2016-10-19 12:35:50 +02:00
Jacob Bom
4e5f4582dd
Merge pull request #411 from python-telegram-bot/bitwise-filters
...
Make filters and/or-able using bitwise operators.
2016-10-19 11:40:35 +02:00
Jacob Bom
225bc24c2a
Merge pull request #442 from python-telegram-bot/explicit-kwargs
...
Use explicit kwargs and change/add a bunch of documentation.
2016-10-19 11:36:19 +02:00
Noam Meltzer
a5f9aa3171
more documentation
2016-10-17 23:44:40 +03:00
Noam Meltzer
78088f4f6a
Fix grammer: 'a object' -> 'an object'
2016-10-17 01:22:40 +03:00
Noam Meltzer
59fa717023
Documentation improvements + small style fixes
2016-10-17 01:11:20 +03:00
Noam Meltzer
31cab0d1b4
editMessageCaption & editMessageReplyMarkup: more validation on input
2016-10-17 01:09:44 +03:00
Jacob Bom
e367b8519d
Use explicit kwargs for all class inits in pure api.
...
While not stickily necessary for most classes (since user isn't directly creating them) it still unifies our approach.
However for some like ReplyKeyboardHide where users are making the classes themselves it should improve IDE autocomplete support.
2016-10-16 16:24:13 +02:00
Jacob Bom
b610316667
Use explicit kwargs for all bot methods.
...
This improves support for many IDEs' autocompletion.
2016-10-16 15:54:48 +02:00
Jacob Bom
62dd3a33e6
Better kwargs defaults.
2016-10-16 12:41:12 +02:00
Jacob Bom
3754cdafb2
send_game has differnt kwargs.
2016-10-16 12:41:12 +02:00
Jacob Bom
305ff93018
set_game_score might return True
2016-10-16 12:41:12 +02:00
Jacob Bom
a5671a8fb1
Merge pull request #423 from python-telegram-bot/edit-class-method
...
Add edit_* class methods
2016-10-15 23:03:43 +02:00
Jacob Bom
c626044a30
Add "all" filter
...
Since and empty list cannot (in the future, currently only deprecated) be used.
2016-10-15 22:58:55 +02:00
Noam Meltzer
a68cf8d464
Respect RetryAfter with polling Updater
2016-10-15 23:39:50 +03:00
Jacob Bom
ca5e3146c6
Fix docstring according to Jannes' commentns.
2016-10-14 10:32:12 +02:00
Noam Meltzer
53a574bbbb
Improve unitests coverage
2016-10-13 22:52:53 +03:00
Noam Meltzer
5b8efe0c14
upgrade yapf to ver 0.12.2
2016-10-12 23:56:57 +03:00
Noam Meltzer
32a78722ae
yapf fixes
2016-10-12 23:33:52 +03:00
Patrick Hofmann
8dc10fc7b2
fixes broken test cases with PhotoSize, Game and Animation classes ( #435 )
...
* fixes broken test with PhotoSize, Game and Animation
However:
testSendGame and test_set_game_score both produces *BadRequest: u'Wrong file identifier/HTTP URL specified'*.
* fixes test_set_game_score
* adds to_dict method to Game to prevent extra collection type checks in base.TelegramObject
2016-10-10 11:44:40 +02:00
Jacob Bom
b7c7612b3f
Add game filter
2016-10-07 22:37:29 +02:00
Patrick Hofmann
8cab735342
small fix for game related parts
...
* bot.py fix copy paste error in url
* callbackquery.py make data field optional
* message.py introduce optional game field
2016-10-06 17:52:53 +02:00
Noam Meltzer
01a5a1c5b3
small documentation fix
2016-10-05 23:22:55 +03:00
Noam Meltzer
1f9d3163dd
Game: use explicit keyword args + added docmentation
2016-10-04 02:17:12 +03:00
Noam Meltzer
837e9d2964
Animation: use explicit keyword args + added documentation
2016-10-04 02:16:33 +03:00
Noam Meltzer
fab97df58a
GameHighScore: added attributes documentation
2016-10-04 02:06:22 +03:00
Noam Meltzer
d70fc48e94
getGameHighScores(): added documentation + fixed copy-paste errors
2016-10-04 01:57:19 +03:00
Noam Meltzer
36192912c2
setGameScore: fixes
...
- fix copy/paste errors
- return Message object
2016-10-04 01:56:05 +03:00
Noam Meltzer
34748ec228
callbackgame: small documentation fix
2016-10-04 01:50:34 +03:00
Noam Meltzer
d5567cd9cd
sendGame(): mall fixes
2016-10-04 01:37:44 +03:00
Noam Meltzer
2463b4b9c8
New exception: RetryAfter
...
Also, small fix to the description text of ChatMigrated
2016-10-04 01:27:45 +03:00
Noam Meltzer
7cf5009517
small documentation fixes
2016-10-04 01:10:30 +03:00
Noam Meltzer
9b74625d4a
answerCallbackQuery: fix copy/paste: show_alert -> url
2016-10-04 00:55:29 +03:00
Noam Meltzer
4180c069b3
InputFile: use self instead of explicit class name
2016-10-04 00:25:32 +03:00
Noam Meltzer
3a0f219783
inputfile: define the file types as constant and use iterator
2016-10-04 00:25:05 +03:00
Noam Meltzer
3c889655c1
Allow http url as a file_id
...
N.B. test_send_video_mp4_file_url() is still failing, probably because
of telegram servers bug. Will contact telegram bot support about that.
2016-10-04 00:20:17 +03:00
Jacob Bom
5e2d96b47d
Make tests actually run at all
2016-10-03 21:07:41 +02:00
Jacob Bom
551f6c556c
Add game parameters in various places
...
Also chat_instance in CallbackQuery which will break a lot of tests probably
2016-10-03 21:01:38 +02:00
Jacob Bom
ae17eb3272
Add InlineQueryResultGame
2016-10-03 20:55:21 +02:00
Jacob Bom
358dd795c7
Add the rest of game_ methods to bot.
2016-10-03 20:43:02 +02:00
Jacob Bom
151a441af7
Add send_game
2016-10-03 20:40:17 +02:00
Noam Meltzer
1f67623615
Fix import order
2016-10-03 21:34:08 +03:00
Noam Meltzer
8737b5de63
fix syntax error by some weird char
2016-10-03 21:17:04 +03:00
Jacob Bom
f3b8a3a5e9
Merge remote-tracking branch 'origin/october3' into october3
2016-10-03 20:10:14 +02:00
Jacob Bom
9e9309eb90
Add all new Game related classes
...
Missing docstrings for now though, wanna add everything first
2016-10-03 20:09:57 +02:00
Noam Meltzer
e8a34d8eef
cosmetic fixes and documentation for getWebhookInfo
2016-10-03 20:43:10 +03:00
Jacob Bom
34c62a633b
Add url to answerCallbackQuery
2016-10-03 15:25:07 +02:00
Jacob Bom
868d9217bc
Add WebhookInfo and getWebhookInfo
...
Still needs tests though
2016-10-03 15:16:43 +02:00
Jacob Bom
f7ede4baea
Add caption fields to voice and audio
...
Or at least the methods/classes for sending.
2016-10-03 15:05:49 +02:00
Jacob Bom
c3e07b1056
Add switch_inline_query_current_chat
2016-10-03 14:52:58 +02:00
Jacob Bom
79bdfe4c5d
Allow filters to be passed without list.
...
Also deprecates actually using a list.
2016-09-29 19:10:22 +02:00
Michael Elovskikh
46657afa95
Start additional threads only when necessary ( #415 )
...
* Start all additional threads only when necessary.
* Deprecate prevent_autostart in the c'tor of JobQueue.
2016-09-27 10:21:35 +03:00
Jacob Bom
79e065a730
Add __str__ and __repr__ to MergedFilter.
2016-09-25 16:31:06 +02:00
Jacob Bom
0e2c3666c0
Add edit_* family of methods to CallbackQuery.
...
Either edits the message attribute, or the message associated with the inline_message_id.
2016-09-25 16:03:06 +02:00
Jacob Bom
a996e8873f
Add edit_* family of methods to Message.
2016-09-25 15:50:58 +02:00
Jacob Bom
3244417f61
Add docs for filters.
2016-09-25 00:30:04 +02:00
Jacob Bom
61596400e1
__call__ should return the result
...
Also add tests with both & and |.
2016-09-24 18:56:54 +02:00
Jacob Bom
be0f5bc519
Merge branch 'master' into bitwise-filters
...
# Conflicts:
# telegram/ext/messagehandler.py
# tests/test_filters.py
2016-09-24 18:30:58 +02:00
Jacob Bom
2161681131
Use filter method instead of __call__
...
__call__ is scary looking for users wanted to create their own filters.
Also allows us to put additional logic in __call__ if we want in the future.
2016-09-24 18:20:32 +02:00
Jannes Höke
c49058dbb4
Bump version to v5.1
2016-09-24 15:29:23 +02:00
Jacob Bom
1b99caa2f9
Merge remote-tracking branch 'origin/master' into entities-filter
2016-09-24 13:46:55 +02:00
Jacob Bom
e16c1da6b1
Change entities filter to be singular.
...
Also remove the faulty example completely since it should be no longer needed.
2016-09-24 13:38:56 +02:00
Jannes Höke
e1242b3b4a
message.py: add quote keyword argument to reply_x methods ( #420 )
2016-09-23 17:44:09 +02:00
Eli Gao
a91fe5f8f6
Properly split and handle arguments in CommandHandler ( #414 )
...
* Properly split and handle arguments in CommandHandler
* Update the docstring for pass_args in CommandHandler
* Properly split and handle arguments in StringCommandHandler
2016-09-20 06:38:49 +02:00
Jannes Höke
5116a77221
Class methods ( #362 )
...
* bot.py: add create_references method
* create bot reference in webhook handler, use create_references on new updates
* message.py: implement reply_text
* echobot2.py: use Message.reply_text
* fix create_references in webhook handler
* add some more instance methods
* Chat.kick_member and unban_member
* bot.py: Create bot references in outgoing messages
* add tests for everything testable
* test_updater.py: add create_references method to MockBot
* remove Bot.create_references and refactor TelegramObject.de_json to take the additional parameter bot
* List bot as named kwarg where used
* file.py: Use Bot.request property instead of Bot._request attr
2016-09-20 06:36:55 +02:00
Jannes Höke
1efd330e59
ConversationHandler: Fix #373
2016-09-20 05:00:39 +02:00
Jannes Höke
af3e8c6440
Merge branch 'master' of https://github.com/LiaungYip/python-telegram-bot into LiaungYip-master
2016-09-20 04:10:39 +02:00
Jacob Bom
71e74da0a2
Make filters and/or-able using bitwise operators.
...
See associated PR for more info.
2016-09-14 19:29:15 +02:00
Jacob Bom
97bb04cd38
Faulty example was faulty.
2016-09-13 20:50:25 +02:00
Jacob Bom
f7b497c1b4
Fix in keyword ordering
...
We're testing for a string in list, not the other way around :P
2016-09-13 20:45:42 +02:00
Jacob Bom
4e60008086
Add entities filter
...
Should ideally superseed #375 .
2016-09-13 20:09:46 +02:00
Rahiel Kasim
5285f63e4a
Merge pull request #388 from python-telegram-bot/emoji
...
deprecate telegram.Emoji
2016-09-13 19:25:58 +02:00
Jacob Bom
6647ae3c25
Add methods to parse entities in Message
...
Should close #400 .
* Add parse_entity
* Add parse_entities
* Add MessageEntity types as constants to MessageEntity.
* Add MAX_MESSAGE_ENTITIES to constants.py
Note: the value has been found by experimentation as opposed to extracted from the api docs.
* Add tests for parse_entity and parse_entities
2016-09-07 08:49:09 +02:00
Noam Meltzer
e4a132c0e4
Reusable dispatcher ( #402 )
...
* Create a Request class which maintains its own connection pool
* When creating a Bot instance a new Request instance will be created if one wasn't supplied.
* Updater is responsible for creating a Request instance if a Bot instance wasn't provided.
* Dispatcher: add method to run async functions without decorator
* Dispatcher can now run as a singleton (allowing run_async decorator to work) as it always did and as multiple instances (where run_async decorator will raise RuntimeError)
2016-09-06 16:38:07 +03:00
Rahiel Kasim
da87d4ba78
fix yapf
2016-08-26 11:17:05 +02:00
Rahiel Kasim
fcda567f8c
use ujson as JSON en/decoder if available
2016-08-26 09:40:46 +02:00
Jacob Bom
ffff0938f4
Add forwarded filter ( #392 )
2016-08-23 16:55:50 +02:00
Li-aung 'Lewis' Yip
ab2d6eb494
Fix "key not found" exception if the very first message handler in a ConversationHandler returns the state ConversationHandler.END.
2016-08-22 05:49:37 +08:00
Rahiel Kasim
5d27059631
deprecate telegram.Emoji
2016-08-21 11:50:22 +02:00
Rahiel Kasim
00bba73673
drop Python 2.6 support ( closes #245 ) ( #386 )
...
* drop Python 2.6 support (closes #245 )
* fix NullHandler import
* README: explicitly mention Py3 and PyPy compatibility
2016-08-20 22:01:07 +02:00
Jannes Höke
5134f71380
Merge branch 'more-regex-handlers' of https://github.com/bomjacob/python-telegram-bot into bomjacob-more-regex-handlers
2016-08-06 14:32:05 +02:00
Jacob Bom
32268597d9
Wrap long lines
2016-08-06 14:19:41 +02:00
Jacob Bom
cd2f956e56
Also fix linebreak ^^
2016-08-06 13:35:58 +02:00
Jacob Bom
18fdb5ed13
Fix weird indent.
2016-08-06 13:35:06 +02:00
Jacob Bom
8c698caa12
Add Regex handling to CallbackQueryHandler and InlineQueryHandler.
...
Mostly a copy-paste from RegexHandler.
Not fully tested! Also needs yapf - sorry.
2016-08-06 13:33:38 +02:00
Jannes Höke
587908457e
move version string to telegram/version.py ( #361 )
2016-07-29 15:40:11 +00:00
overquota
f1ee54fa73
ChatMigrated exception ( #353 )
...
* ChatMigrated exception
2016-07-25 21:50:33 +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
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
Jannes Höke
2745023854
Merge branch 'master' of github.com:python-telegram-bot/python-telegram-bot
2016-04-27 01:06:58 +02:00
Jannes Höke
fd15e51e28
bump version to 4.0.0, update CHANGES
2016-04-27 01:02:57 +02:00
Jannes Höke
7f463131aa
re-order imports
2016-04-27 00:28:21 +02:00
Noam Meltzer
a686db2c6f
bot.Bot: fix class docstring
2016-04-26 23:31:29 +03:00
leandrotoledo
1f29093027
Merge branch 'unittest-bot2.0' of https://github.com/python-telegram-bot/python-telegram-bot into unittest-bot2.0
2016-04-26 14:17:59 -03:00
Noam Meltzer
49385493f4
bot: 'if X is not None' is cleaner approach
2016-04-26 17:47:37 +03:00
Noam Meltzer
f107070db2
TelegramObject.to_dict(): cover cases where value is 0 or empty object
2016-04-26 17:47:37 +03:00
Noam Meltzer
3f28633e79
MessageHandler / filters: refactor
...
filters are now functions instead of enum like objects.
their definitions were moved to messagehandler.py
2016-04-26 17:47:37 +03:00
Noam Meltzer
8ff8d57998
TelegramObject.to_dict(): use iterators
2016-04-26 17:47:37 +03:00
Noam Meltzer
e9a782a3c8
dispatcher.addHandler(): fix docstring
2016-04-26 17:47:37 +03:00
Noam Meltzer
1f83e7ae4e
dispatcher.addHandler(): validate value of group is int
2016-04-26 17:47:37 +03:00
Noam Meltzer
856f4460fc
handler: docstring fix
2016-04-26 17:47:37 +03:00
Noam Meltzer
c5ad34b074
dispatcher: style fix
2016-04-26 17:47:37 +03:00
Noam Meltzer
78d1faa21e
dispatcher: on removeHandle(), remove the groups too if it's empty
2016-04-26 17:47:37 +03:00
Noam Meltzer
4ac8f86156
dispatcher: honour the priority of groups
2016-04-26 17:47:37 +03:00
Noam Meltzer
8a087dce69
import queue
(like in py3) directly
...
future module takes care of adding the `queue` package to py2
2016-04-26 17:47:37 +03:00
Noam Meltzer
82282ae125
dispatcher: retrieve Handler class name dynamically
...
this way it is more resilient to class name changes
2016-04-26 17:47:37 +03:00
Noam Meltzer
02243f6fda
utils.validater: remove dead code
2016-04-26 17:47:37 +03:00
Noam Meltzer
05a90dc3bc
regexhandler/stringregexhandler: python2 utf8 support
2016-04-26 17:47:37 +03:00
Leandro Toledo
1425533871
Adds docstring to InlineQueryResultCachedAudio
2016-04-25 20:15:05 -03:00
Leandro Toledo
fc7c161018
Merge remote-tracking branch 'origin/master' into unittest-bot2.0
2016-04-24 14:33:17 -03:00
Andrea Giove
39ba575a4d
Missing a comma
2016-04-24 17:54:36 +02:00
Andrea Giove
87ac962805
Added caption paramenter to sendDocument method
2016-04-24 17:51:15 +02:00
Leandro Toledo
14cb13acfd
Adds @message decorator to editMessageText
2016-04-24 11:19:37 -03:00
Leandro Toledo
4ecb4911db
Adds @message decorator to editMessageText
2016-04-24 11:18:16 -03:00
Leandro Toledo
d47787876a
Merge remote-tracking branch 'origin/master' into unittest-bot2.0
2016-04-24 11:08:35 -03:00
Leandro Toledo
4b173bfd52
Add tests for InputContactMessageContent InputLocationMessageContent InputTextMessageContent InputVenueMessageContent
2016-04-24 11:08:06 -03:00
Leandro Toledo
bfbad1625e
Merge pull request #252 from python-telegram-bot/fix-timeout-args
...
Add timeout and network_delay kwargs to all bot methods.
2016-04-24 11:05:26 -03:00
Jannes Höke
564baea8c3
Merge pull request #251 from python-telegram-bot/fix_run_async
...
release semaphore on exceptions
2016-04-24 15:59:09 +02:00
Leandro Toledo
adc3104214
Add timeout and network_delay kwargs to all bot methods.
2016-04-24 10:06:59 -03:00
Jannes Höke
2f7cccfc9f
revert c0dd9c6
2016-04-24 14:15:01 +02:00
Jannes Höke
5a7a62c3d8
release semaphore on exceptions
2016-04-24 13:43:42 +02:00
Leandro Toledo
fe06708d34
Trying to isolate the problem.
2016-04-23 22:37:59 -03:00
Leandro Toledo
f68b8c3a4a
Adds InputContactMessageContent class, fixes InlineQueryResultArticle tests, de_json super calls for replymarkup objects and factory for InputMessageContent #188
2016-04-23 20:19:51 -03:00
Jannes Höke
b30417681b
Merge pull request #248 from python-telegram-bot/bytes-images-py2
...
InputFile to support any objects with .read attribute
2016-04-23 14:36:59 +02:00
leandrotoledo
9b1a55f9e9
Reverting some master files
2016-04-22 22:15:48 -03:00
leandrotoledo
252abb138d
Using hasattr instead isinstance for file check #119
2016-04-22 21:51:00 -03:00
leandrotoledo
203364d939
Merge branch 'bot-api-2.0' of https://github.com/python-telegram-bot/python-telegram-bot into bot-api-2.0
2016-04-22 21:33:37 -03:00
Jannes Höke
7daf26198e
bump version to 4.0rc1
2016-04-22 16:24:32 +02:00
Jannes Höke
d46d9a711d
Merge branch 'bot-api-2.0' into dispatcher-rework
...
Conflicts:
docs/source/telegram.ext.jobqueue.rst
docs/source/telegram.rst
2016-04-22 16:12:45 +02:00
Leandro Toledo
b444cd7bce
Adding new modules to docs #232
2016-04-22 11:07:44 -03:00
Jannes Höke
cb79317354
remove lazy import of JobQueue
2016-04-21 20:37:43 +02:00
Jannes Höke
cfdfdeb4fc
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-21 17:20:05 +02:00
Leandro Toledo
0669c72fe3
Fixing little princes Python 2.6 string format arg #232
2016-04-21 12:18:51 -03:00
Leandro Toledo
5315e072cb
PEP8 for Py2 #232
2016-04-21 11:59:18 -03:00
Leandro Toledo
a8255e4f51
Revert switch_inline_query #232
2016-04-21 11:42:02 -03:00
Leandro Toledo
e56c6dfab6
Revert "Minor fixes #232 "
...
This reverts commit 720c4d22d8
.
2016-04-21 11:20:09 -03:00
Leandro Toledo
263310be36
switch_inline_query defaults to empty string #232
2016-04-21 11:02:34 -03:00
Leandro Toledo
720c4d22d8
Minor fixes #232
2016-04-21 10:56:38 -03:00
Leandro Toledo
3be8b9ecb9
Should fix empty string but set args #232
2016-04-21 09:56:57 -03:00
Leandro Toledo
bb36c725af
More refactoring and docstrings #232
2016-04-21 09:21:12 -03:00
Leandro Toledo
ba7e1cada7
Bot class refactor and its docstrings #232
2016-04-21 08:15:38 -03:00
Jannes Höke
c0dd9c6ffc
always set webhook_url
2016-04-21 12:57:03 +02:00
leandrotoledo
10a96481f5
Merge branch 'bot-api-2.0' of https://github.com/python-telegram-bot/python-telegram-bot into bot-api-2.0
2016-04-19 11:36:00 -03:00
Leandro Toledo
9a96ad8efd
Unused import #232
2016-04-19 09:12:22 -03:00
Leandro Toledo
fc277d7393
Refactor of telegram.Bot class and docstrings #232
2016-04-19 09:04:25 -03:00
Jannes Höke
48eb623f15
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-19 01:24:02 +02:00
Leandro Toledo
9a340d2ea9
Endorsing if empty or 0 or empty string and minor typo fix #232
2016-04-18 20:18:32 -03:00
Jannes Höke
693df6dc2c
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-19 00:08:59 +02:00
Jannes Höke
a98919a86e
fix cache_time==0 case
2016-04-19 00:08:47 +02:00
Jannes Höke
9790d6d8dc
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-18 21:35:50 +02:00
Jannes Höke
7913d09295
fix message.to_dict
2016-04-18 21:35:39 +02:00
Jannes Höke
1db337fe2b
Merge branch 'master' into dispatcher-rework
2016-04-18 21:23:14 +02:00
Jannes Höke
0d9d5032ef
exit immediately if receiving second interrupt #224
2016-04-18 19:21:57 +02:00
Jannes Höke
b6fceefc80
documentation
2016-04-18 18:13:54 +02:00
Jannes Höke
687a3b0ba1
dispatcher: also break on errors in checkHandler
2016-04-18 17:15:41 +02:00
Jannes Höke
bf5ba9a369
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-17 22:22:52 +02:00
Jannes Höke
d879a0d018
convert reply_markup to json
2016-04-17 22:11:29 +02:00
Jannes Höke
ad211655ea
Merge branch 'master' into dispatcher-rework
...
Conflicts:
README.rst
2016-04-17 12:45:31 +02:00
Jannes Höke
3a0eb588cb
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-17 12:43:59 +02:00
Jannes Höke
c9bfa71ff9
decode new message fields
2016-04-17 12:43:34 +02:00
Jannes Höke
5f19452dd7
implement de_list
2016-04-17 12:43:09 +02:00
Jannes Höke
5cccf2603b
reorder imports
2016-04-17 12:42:41 +02:00
Jannes Höke
185b080daa
fix de_json
2016-04-17 12:42:30 +02:00
Jannes Höke
a846c8fd86
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-16 20:58:08 +02:00
Jannes Höke
0e5129e59f
fix method names and parameters for new methods
2016-04-16 20:57:50 +02:00
Jannes Höke
79ca07f839
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-16 20:33:36 +02:00
Jannes Höke
5e80efaa54
editMessage->editMessageText
2016-04-16 20:29:43 +02:00
Jannes Höke
a114f70249
fix callback query condition
2016-04-16 20:29:08 +02:00
Jannes Höke
31fba47829
fix super calls and module docs
2016-04-16 19:25:38 +02:00
Jannes Höke
f2a92ccf46
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-16 19:00:01 +02:00
Leandro Toledo
79228b0655
Adds kwargs for InlineQueryResult objects #232
2016-04-16 13:49:16 -03:00
Jannes Höke
b2045717d6
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-16 18:18:37 +02:00
Leandro Toledo
15cc410c10
Merge remote-tracking branch 'upstream/master' into bot-api-2.0
2016-04-16 13:16:49 -03:00
Leandro Toledo
f6524b0207
Adding InlineQueryResultCachedVoice #232
2016-04-16 13:10:30 -03:00
Noam Meltzer
ecc86d4bcd
request: catch socket.error
...
socket.error is another exception which is thrown by the underlying
infrastacture and not handled by the urllib2 or httplib layers
fixes #236
2016-04-16 19:09:45 +03:00
Leandro Toledo
56b17f2a17
Adding InlineQueryResultVoice #232
2016-04-16 13:05:55 -03:00
Leandro Toledo
8bf4a6fdda
Refactoring InlineQueryResultVideo #232
2016-04-16 13:01:26 -03:00
Leandro Toledo
109af62425
Adding InlineQueryResultVenue #232
2016-04-16 12:58:36 -03:00
Leandro Toledo
ec27edef58
Refactoring InlineQueryResultPhoto #232
2016-04-16 12:55:05 -03:00
Leandro Toledo
7231eaa349
Refactoring InlineQueryResultMpeg4Gif #232
2016-04-16 12:52:21 -03:00
Leandro Toledo
1876867ec7
Adding InlineQueryResultLocation #232
2016-04-16 12:49:07 -03:00
Leandro Toledo
17509fc24f
Refactoring InlineQueryResultGif #232
2016-04-16 12:46:24 -03:00
Leandro Toledo
2d2b269932
Adding InlineQueryResultDocument #232
2016-04-16 12:39:53 -03:00
Leandro Toledo
802a74c606
Adding InlineQueryResultContact #232
2016-04-16 12:35:23 -03:00
Leandro Toledo
c4074f740e
Refactoring InlineQueryResultAudio #232
2016-04-16 12:32:40 -03:00
Leandro Toledo
1e0ee0694f
Refactoring InlineQueryResultArticle #232
2016-04-16 12:30:18 -03:00
Leandro Toledo
6a7c0bb584
Adding InlineQueryResultCachedVideo #232
2016-04-16 12:22:29 -03:00
Leandro Toledo
fb2fc3842b
Adding InlineQueryResultCachedSticker #232
2016-04-16 12:20:15 -03:00
Leandro Toledo
c794c3520b
Adding InlineQueryResultCachedPhoto #232
2016-04-16 12:18:50 -03:00
Leandro Toledo
0fd013feec
Adding InlineQueryResultCachedMpeg4Gif #232
2016-04-16 12:16:45 -03:00
Leandro Toledo
1834d6c754
Adding InlineQueryResultCachedGif #232
2016-04-16 12:14:43 -03:00
Leandro Toledo
f51564f7cd
Adding InlineQueryResultCachedDocument #232
2016-04-16 12:12:37 -03:00
Leandro Toledo
624160e1db
Adding InlineQueryResultCachedAudio #232
2016-04-16 12:09:26 -03:00
Jannes Höke
d2f2b74bdb
imports and classname fix
2016-04-16 16:54:07 +02:00
Leandro Toledo
85f1b1af0c
Adding sendContact and sendVenue methods #232
2016-04-16 11:48:36 -03:00
Jannes Höke
b5cbf17ef5
Merge branch 'bot-api-2.0' into dispatcher-rework
2016-04-16 16:41:39 +02:00
Jannes Höke
0d0ad1334c
add documentation and minor stuff
2016-04-16 16:36:12 +02:00
Leandro Toledo
b9305ca7ac
Adding MessageEntity and Venue classes #232
2016-04-16 11:33:58 -03:00
Leandro Toledo
0e21609382
Adding InputMessageContent classes #232
2016-04-16 11:23:25 -03:00
Jannes Höke
95fde0c6c4
create missing handler types and minor fixes
2016-04-16 15:21:19 +02:00
kiddick
a9b305edd0
Fix class declaration according to consistency. ( #235 )
2016-04-15 17:20:37 +03:00
Jannes Höke
1e19084a0d
initial commit for dispatcher rework. deleted updatequeue.py as it is not needed. added handler base class, messagehandler, commandhandler, regexhandler. adjusted dispatcher for new system
2016-04-14 23:57:40 +02:00
Noam Meltzer
e179b27f57
dispatcher: fix wrong variable ( #233 )
2016-04-14 23:23:02 +03:00
Leandro Toledo
8b95f9cbeb
PEP 8 - lemme sleep Traviszzzzz #232
2016-04-14 03:59:33 -03:00
Leandro Toledo
086fa1251c
Minor fixes #232
2016-04-14 03:40:26 -03:00
Leandro Toledo
60f9aede07
Minor fix on answerInlineQuery #232
2016-04-14 02:38:51 -03:00
Leandro Toledo
c411ef7822
Adding switch_pm_text and switch_pm_parameter to answerInlineQuery #232
2016-04-14 02:34:29 -03:00
Leandro Toledo
e1de7220df
Adding ChosenInlineResult #232
2016-04-14 02:21:00 -03:00
Leandro Toledo
429ea92254
Adding KeyboardButton #232
2016-04-14 02:01:05 -03:00
Leandro Toledo
751402a0d3
Adding new Bot methods editMessageText, editMessageCaption, editMessageReplyMarkup #232
2016-04-14 00:28:06 -03:00
Leandro Toledo
2af15cadd6
New method answerCallbackQuery #232
2016-04-13 21:25:26 -03:00
Leandro Toledo
93e19dc2ae
Adding CallbackQuery #232
2016-04-13 21:10:04 -03:00
Leandro Toledo
c2f5309cbf
Adding InlineKeyboardMarkup #232
2016-04-13 20:41:26 -03:00
Leandro Toledo
1657e43904
Adding InlineKeyboardMarkup #232
2016-04-13 20:38:45 -03:00
Leandro Toledo
23eba8a24e
Adding InlineKeyboardButton #232
2016-04-13 20:26:38 -03:00
Leandro Toledo
ed170e1595
Bootstrapping InputMessageContent classes #232
2016-04-13 20:01:36 -03:00
Leandro Toledo
46ca28f01c
Bootstrapping InlineQueryResult classes #232
2016-04-13 09:59:48 -03:00
Leandro Toledo
b99518e8b8
3 more classes #232
2016-04-12 01:23:52 -03:00
Leandro Toledo
62045316fe
Adding 27 new classes #232
2016-04-12 01:12:35 -03:00
Leandro Toledo
736d62e20d
New methods kickChatMember and unbanChatMember #232
2016-04-12 00:46:50 -03:00
Leandro Toledo
68dca31f15
Renamed fields new_chat_participant and left_chat_participant #232
2016-04-12 00:33:42 -03:00
Rahiel Kasim
01b90e7ede
small improvements
2016-04-02 23:13:49 +02:00
Noam Meltzer
eb6bafc003
Merge pull request #217 from python-telegram-bot/fix_webhook
...
Only set webhook if using SSL and also send certificate
2016-03-23 20:26:23 +02:00
jools
b41e1ab127
Fix annoying grammar error
2016-03-23 16:23:38 +02:00
Jannes Höke
5c71ebce52
ensure url_path is string
2016-03-23 11:04:38 +01:00
Jannes Höke
6db377d56d
Only set webhook if using SSL and also send certificate
2016-03-23 10:11:10 +01:00
Jannes Höke
808945b623
prepare release of v3.4
2016-03-22 03:02:13 +01:00
Jannes Höke
63a83d4cc2
fix imports of updatequeue
2016-03-22 02:48:56 +01:00
Jannes Höke
c43b348117
lazily load all of telegram.ext
2016-03-22 02:42:40 +01:00
Jannes Höke
45a47d54bd
move updatequeue to telegram.utils
2016-03-22 02:42:19 +01:00
Noam Meltzer
0ddcb16889
start_webhook(): call bot.setWebhook() as a bootstrap step
2016-03-15 22:02:34 +02:00
Noam Meltzer
594b81e463
start_polling(): new argument - bootstrap_retries
...
refs #196
2016-03-15 22:02:16 +02:00
Leandro Toledo
1e4ae6546f
Changing INFO logs to DEBUG and minor fixes
2016-03-14 22:56:20 -03:00
Rahiel Kasim
d1516f66ac
deprecation warning for telegram.Updater
2016-03-14 19:43:38 +01:00
Rahiel Kasim
739e218eb7
PEP8
2016-03-14 15:26:22 +01:00
Rahiel Kasim
dcea2c8015
Merge branch 'master' of https://github.com/leandrotoledo/python-telegram-bot
2016-03-14 15:07:16 +01:00
Rahiel Kasim
98112d3987
move Updater and friends to ext submodule
2016-03-14 14:50:12 +01:00
Jannes Höke
45a4689fd0
update docstrings of Message regarding supergroup conversion
2016-03-14 09:54:33 +01:00
Jannes Höke
82030c4109
Merge pull request #199 from python-telegram-bot/send-inputfile-from-bytesio
...
Fix InputFile attribute check when from a BufferedReader object
2016-03-14 01:17:27 +01:00
Dmitriy
00e2b4815a
Processing commands without casting to UTF-8
2016-03-13 12:32:27 +03:00
Shelomentsev Dmitriy
3d89f6b284
dispatchTelegramCommand no-break space fix.
2016-03-13 02:15:48 +03:00
Leandro Toledo
8ad34fc3c0
Fix InputFile attribute check when from a BufferedReader object
2016-03-12 19:40:56 -03:00
Rahiel Kasim
8b196ce71f
load Updater class only when used
2016-03-12 15:29:54 +01:00
Aydar Biktimirov
dc9b77e02c
Merge remote-tracking branch 'upstream/master'
2016-03-11 23:03:13 +03:00
Rahiel Kasim
5958da0031
bot.sendMessage: update documentation
2016-03-11 20:32:10 +01:00
Aydar Biktimirov
433110abe9
Added disable_notification parameter for silent messages
2016-03-09 18:47:33 +03:00
Noam Meltzer
a0a040a9c2
updater: allow cleaning updates from Telegram servers before start
2016-03-01 22:12:12 +02:00
Noam Meltzer
f0e7a3316c
jobqueue: fix docstring
2016-03-01 20:20:51 +02:00
Jannes Höke
218e22631c
Prepare to release v3.3
2016-02-28 02:33:49 +01:00
Jannes Höke
cd42524fd4
Merge pull request #174 from python-telegram-bot/inlinebots
...
Implement Inlinebots
2016-02-28 02:10:21 +01:00
Jannes Höke
4aca4d1d1f
Merge pull request #187 from python-telegram-bot/flaky-tests
...
Flaky tests
2016-02-28 01:02:11 +01:00
Noam Meltzer
ccb24d1288
request.py: fix for python2.7
2016-02-27 23:13:29 +02:00
Noam Meltzer
fc618274ae
bot.py: allow specifying timeout for sendVideo operations
2016-02-27 23:00:33 +02:00
Noam Meltzer
ec8cd37345
test_video.py: adapt to latest changes in the API
2016-02-27 22:50:28 +02:00
Jannes Höke
efd10507d0
remove kwargs in favor of named keyword arguments, validate argument types
2016-02-21 11:33:34 +01:00
Noam Meltzer
2338377eda
request: better parsing of URLError exception
2016-02-20 15:20:00 +02:00
Jannes Höke
ca526fba73
improve unit tests according to comments
2016-02-20 12:14:34 +01:00
Jannes Höke
e2cc8db992
Merge branch 'master' into inlinebots
2016-02-20 11:17:34 +01:00
Noam Meltzer
d415a60ebf
join() threads instead of guessing if they're running
...
- new book keeping of dispatcher's async threads so they can be joined
when stopping
- updater, webhook & dispatcher threads are now kept on
Updater.__threads so they can be joined at the end
refs #175
2016-02-19 18:00:57 +02:00
Noam Meltzer
fd7baa2236
updater.py: use _init_thread for webhook as well
2016-02-19 18:00:57 +02:00
Noam Meltzer
4945d99de6
webhookhandler: better handling of invalid POST data
2016-02-19 18:00:57 +02:00
Noam Meltzer
c103c05679
updater.py: fix log of thread name
2016-02-19 18:00:57 +02:00
Rahiel Kasim
d02e656700
raise NetworkError for HTTP 502 (Bad Gateway)
2016-02-09 15:26:59 +01:00
Jannes Höke
edf4e8abbe
fix docstring
2016-02-07 23:34:26 +01:00
Jannes Höke
c55c5408b1
tests and corrections for inlinequery
2016-02-07 23:34:15 +01:00
Jannes Höke
d1dc32d849
tests and corrections for choseninlineresult
2016-02-07 23:26:38 +01:00
Jannes Höke
2a01292a64
Merge branch 'master' into inlinebots
2016-02-07 22:42:12 +01:00
Jannes Höke
5b9ec7ff40
catch errors in error handlers
2016-02-07 22:40:55 +01:00
Jannes Höke
bec81b5c3b
Merge pull request #161 from tsnoam/master
...
better exception handling
2016-02-07 22:34:49 +01:00
Jannes Höke
eac3d8842d
remove json import
2016-02-07 15:09:41 +01:00
Jannes Höke
17ac73c3c4
fix message to json
2016-02-07 14:46:36 +01:00
Noam Meltzer
4a5001668d
updater/dispatcher: on exception stop all threads
2016-02-07 00:56:30 +02:00
Noam Meltzer
7ebbc60694
Unauthorized is HTTP code 401
...
I am not certain where the older 403 came from, but for now going to
leave it as is
2016-02-07 00:56:30 +02:00
Noam Meltzer
e82ae432f7
dispatcher is now stopped using a threading.Event
2016-02-07 00:56:30 +02:00