Noam Meltzer
8a8b1215c8
Fix documentation of Request object initialization (for advanced users) ( #866 )
...
fixes #676
2017-10-12 00:39:09 +03:00
Eldinnie
2aa456d637
remove Bot._message_wrapper ( #822 )
...
Moved tho code to the @message decorator instead
fixes #752
2017-10-11 23:38:00 +03:00
Eldinnie
d75e0f6014
Stabilize Coverage ( #846 )
...
* test_error added
* ignore unstables for coverage
2017-09-25 20:58:10 +02:00
Jeff
dbb3b16edc
Add Job Class to docs ( #845 )
...
* fix job class missing from docs
* fix typo
2017-09-25 20:57:53 +02:00
Jeff
5614af1847
Docstring Fix for ext/filters.py ( #830 )
2017-09-15 23:56:16 +02:00
Marco Túlio Zuquim
e362a5b59d
Small documentation fix in user.py ( #829 )
2017-09-15 23:55:35 +02:00
Yii Kuo Chong
e39b6abe61
Small documentation fix ( #815 )
...
Fixes #799
2017-09-07 22:55:06 +03:00
Pieter Schutz
6012fa65c1
Bump to version 8.0
2017-09-01 10:38:15 +02:00
Pieter Schutz
ef9dbacf7e
Fix last issues for new release
2017-09-01 10:38:04 +02:00
Jannes Höke
1f5311b473
catch exceptions in error handlerfor errors that happen during polling (2) ( #810 )
...
* catch exceptions in error handlerfor errors that happen during polling
* add tests for error handlers that raise exceptions
2017-09-01 08:46:21 +02:00
Eldinnie
eae139d3e9
remove de_json() ( #789 )
...
* remove de_json()
* Remove or rename obsolete tests
* fixes according to rc
2017-09-01 08:45:22 +02:00
Eldinnie
160ffed5ad
Remove Botan ( #776 )
2017-09-01 08:45:01 +02:00
Noam Meltzer
e018445513
Documentation update to PEP ( #797 )
2017-09-01 08:43:08 +02:00
Eldinnie
4601eedf0f
Show status_updates in docs ( #798 )
...
* Show status_updates in docs
* Show status_updates in docs
2017-09-01 08:41:15 +02:00
Jeff
b6a0853896
Add Bot API 3.3 ( #806 )
...
* Bot API 3.3
* simpler helper methods (accept only custom names now)
attempt to fix circular import (not sure if its the correct way tho)
added helper methods into User object
* fix User objects in tests to contain is_bot required value
* fix User objects in tests to contain is_bot required value
* delete extra line that caused flake8 error
* fix swapped arguments
2017-09-01 08:40:05 +02:00
Noam Meltzer
16a49ec659
Remove DispatcherHandlerContinue + more unitests for dispatcher ( #792 )
...
The idea was nice, but it really complicated things for us and for the
user.
If a user wants to run more than one handler on an update, he can put
the handlers in different groups or he can have a single handler.
If a user wants to have multiple handlers in the same group which only
one of them should run on the update, he should use check_update().
Since we haven't released this code yet, there's no problem with
backward compatability.
2017-08-12 18:57:12 +03:00
Noam Meltzer
ee34d57521
Warn on small con_pool_size during custom initalization of Updater ( #793 )
...
fixes #787
2017-08-12 16:45:38 +03:00
Jacob Bom
5d7c6ad541
Switch to pytest + required fixes to code ( #788 )
...
Required fixes:
- CallbackQuery is now comparable.
- Message.effective_attachment, Message.photo,
Message.new_chat_members, Message.new_chat_photo &
Game.text_entitties semantic fixes - when they are not defined,
return an empty list.
- Docstring fix to Update class.
2017-08-12 00:58:41 +03:00
Noam Meltzer
915cd64140
Effective attachment ( #766 )
...
fixes #746
2017-08-08 00:25:19 +03:00
Eldinnie
56f7d18853
bot.py semantic fixes ( #774 )
...
offset for get_user_profile_photo can be zero.
edit_message_caption should raise ValueError in compliance with other methods. Also changed to snake_case
edit_message_reply_markup was even weirder
2017-08-08 00:13:32 +03:00
Eldinnie
b04869f36a
docstring correction ( #775 )
...
[ci skip]
2017-08-08 00:11:44 +03:00
Eldinnie
70057a67c5
Regression fix for text_html & text_markdown ( #777 )
...
`text_html` & `text_markdown` reverted to the old semantics - URLs are not converted to hyperlinks.
To get the new behaviour there are matching `text_html_urled` & `text_markdown_urled` properties.
fixes #773
2017-08-08 00:10:48 +03:00
Eldinnie
8d4b484f7b
Fix Game.to_dict() ( #767 )
...
`Game.to_dict()` fails if the `optional` parameter `test_entities` has it's default value `None`
This fixes that.
2017-08-05 00:02:51 +03:00
Jacob Bom
073bed3a01
Fix get_game_high_scores ( #771 )
2017-08-04 20:41:27 +03:00
Noam Meltzer
5ceb6f8f36
Docs fixes ( #765 )
...
* Clean warnings during build_sphinx
* fix documentation types
2017-08-02 05:56:07 +03:00
Jacob Bom
b3069348ca
Add rich comparison to CallbackQuery ( #764 )
...
We currently have no tests for it. Noted for #756 and #757 .
2017-08-01 23:07:12 +03:00
Eldinnie
d19ae5084a
Add RESTRICTED as constant to ChatMember ( #761 )
2017-07-31 23:37:00 +03:00
Ihor Polyakov
6aacde189e
Flow control ability in Dispatcher ( #738 )
...
fixes #666
2017-07-29 20:15:43 +03:00
Noam Meltzer
5d3f5575ab
Sane defaults for tcp socket options on linux ( #754 )
...
Currently only for linux as most of our userbase is there.
fixes #535
2017-07-29 14:30:27 +03:00
Noam Meltzer
13ab6d43d3
CHANGES.rst: Added 7.0.1 release notes.
...
[ci skip]
2017-07-28 21:22:48 +03:00
Eldinnie
2ba7505eaf
Fix TypeError exception in RegexHandler ( #751 )
...
fixes #750
2017-07-28 20:47:42 +03:00
Eldinnie
5ed06df840
callback query docstring ( #749 )
...
showed from instead of from_user and was missing the informational note about it.
[ci skip]
2017-07-28 17:41:25 +03:00
Noam Meltzer
796583323d
Bump version to v7.0.0
2017-07-25 22:53:20 +03:00
Noam Meltzer
46d9240f36
Update vendored urllib3 gitmodule to the proper git revision
...
Refs #720
2017-07-25 22:37:58 +03:00
Ali Mirlou
e5b0795916
Typo fixed for docs ( #747 )
...
[ci skip]
2017-07-25 21:32:20 +03:00
Eldinnie
8d1d38cc4c
send_* now accepts tg-objects ( #742 )
...
Fixes #731
2017-07-25 01:35:22 +03:00
Eldinnie
2d1028acb6
Add kwargs to data dict ( #744 )
...
Add kwargs to data dict for all bot-methods that are not decorated with `@message`
Fixes #733
2017-07-25 01:19:09 +03:00
Noam Meltzer
2aa31c6faa
Remove urllib3 from reported packages for creating new github issues
...
[ci skip]
2017-07-25 00:22:03 +03:00
Eldinnie
b3b94240a5
Docs update ( #728 )
...
Amazing new documentation.
2017-07-23 23:33:08 +03:00
Rahiel Kasim
19ce9e4512
Delete deprecated code ( #693 )
...
* remove Botan import from utils
* remove telegram.Emoji
* remove ReplyKeyboardHide
* remove edit_message argument of bot.set_game_score
2017-07-23 22:58:20 +03:00
Jelle Besseling
8320227b2a
ConvesationHandler - check if a user exist before using it ( #699 )
...
Fixes #695
2017-07-23 22:29:52 +03:00
Ihor Polyakov
08d298eb60
TelegramObject.de_json became classmethod ( #737 )
...
Fixes #734
2017-07-23 22:14:38 +03:00
Jacob Bom
5a37af6f89
Bot api 3.2 ( #732 )
...
NOTE: Currently not testing StickerSet in terms of bot methods (interaction with telegrams servers) as there's no delete operations.
2017-07-22 14:34:51 +03:00
thodnev
f72f4090c6
Fixed args dispatching in messagequeue decorator ( #705 )
2017-07-08 07:18:10 +03:00
Jacob Bom
94ed4cb38d
Bot api 3.1 ( #698 ) + minor improvements
...
- Added all the new and shiny features from API 3.1.
- Not API 3.1 changes:
- Use future.utils.string_types for string isinstance checks.
- Stall between retries of test_set_webhook_get_webhook_info() &
test_delete_webhook().
2017-07-01 18:08:45 +03:00
Jacob Bom
cbafdc289f
Fix Message.text_*
...
Didn't work with URL type MessageEntities
(when you type a url in a tg client and tg converts it to a link for you)
2017-06-24 11:12:35 +03:00
Noam Meltzer
ebb2556176
Fix download of URLs with UTF-8 chars in path
...
refs #650
2017-06-24 11:10:43 +03:00
Noam Meltzer
56949bcad6
Merge pull request #674 from python-telegram-bot/restructure-internal
...
Move a lot of files
2017-06-22 21:26:47 +03:00
Noam Meltzer
470ee86497
Merge pull request #677 from evgfilim1/new-filters
...
New filters for handling messages from specific chat/user id
2017-06-22 21:25:39 +03:00
evgfilim1
7e81a1510d
Added ability to process list of ids/usernames
2017-06-22 15:19:49 +05:00
evgfilim1
ca9068f2b5
Simplified if statement, fixed docs
2017-06-22 13:39:41 +05:00
Noam Meltzer
45d4ea083d
Merge pull request #671 from alateas/master
...
Make error output more clear for too big uploads.
2017-06-22 10:33:25 +03:00
Noam Meltzer
7a89dcb911
Properly try to parse server message before raising errors
2017-06-21 23:34:35 +03:00
Noam Meltzer
4b3b0cb4cd
Merge pull request #668 from python-telegram-bot/official-test
...
Add an "official test"
2017-06-21 23:14:10 +03:00
Noam Meltzer
3ea16cb1c7
Merge pull request #675 from python-telegram-bot/name-filters
...
Allow filters to have a name.
2017-06-21 23:11:26 +03:00
Jacob Bom
04acbc4117
Remove the need for calling super() in filters
2017-06-21 13:46:03 +02:00
Jacob Bom
4b53ed1c65
Fix videonote import
2017-06-20 22:41:02 +02:00
Jacob Bom
1e4248136c
Merge branch 'master' into restructure-internal
2017-06-20 22:28:14 +02:00
Jacob Bom
0afe83ac30
Merge branch 'master' into official-test
2017-06-20 21:42:33 +02:00
Jacob Bom
6cc84b2c32
Only write repr as str will invoke it implicitly
2017-06-20 21:41:23 +02:00
evgfilim1
9bccbdab2a
Added ability to filter by username
2017-06-20 12:43:07 +05:00
Jacob Bom
a964b7bfd0
Okay, so not even *args followed by a kwarg is allowed on py2...
...
So just remove it for now. Better than doing annoying stuff with parsing a **kwargs dict in my opinion. It didn't even *really* need to be kwarg only anyways I guess...
2017-06-19 21:46:34 +02:00
evgfilim1
5a62255675
Added new filters for handling specific chat id and user id
2017-06-19 22:50:44 +05:00
Jacob Bom
2b871e6f93
* for keyword only arguments isn't supported on py2 it seems...
2017-06-18 16:22:59 +02:00
Jacob Bom
788b9dab0c
Fill in super() calls
2017-06-18 16:03:32 +02:00
Jacob Bom
4c41f3870c
Allow filters to have a name.
...
So their string representation is user friendly.
2017-06-18 15:28:48 +02:00
Jannes Höke
d5583190b8
Bump version to v6.1.0
2017-06-18 12:35:16 +02:00
Jacob Bom
5c2893111a
Move a lot of files
2017-06-18 12:35:00 +02:00
Jacob Bom
faddb92395
Clean up Bot code a bit ( #673 )
...
* Clean up Bot code a bit
- Move decorators to module. It really wasn't clear how decorators inside classes work, and why they didn't have a self parameter, but still wasn't static. This also makes them effectively private without having to underscore them, which I think we should have done long time ago atm. Note that this might break backwards compatibility slightly (only if people are daft enough to have used the decorators themselves)
- Don't call _message_wrapper directly. Ever. Instead always use the message decorator, since it's what it's there for. Closes #627
- Don't use the message decorator if the method isn't supposed to return a message. The decorator could handle values like True (which is often the return value), but to someone reading the code, it seems like it's a message returning method even when it wasn't.
- Always document timeout and **kwargs
- Log all methods
* Add test to make sure timeout propagates properly despite decorators
2017-06-18 12:14:24 +02:00
saschalalala
9b5e014a0a
Simplification of boolean checks ( #662 )
...
* Simplification of boolean checks
* Cast ok to bool for Telegram API json encoding
2017-06-18 12:09:32 +02:00
Jannes Höke
845312da59
Merge branch 'master' of github.com:python-telegram-bot/python-telegram-bot
2017-06-16 04:16:45 +02:00
Alateas
6ffd75e421
Try to process response data after checking errors, not before. Add 413 File too large http error message.
2017-06-15 18:44:39 +03:00
Jacob Bom
9b84a558fb
Fix width+height in sendVideo + game in Message
...
First errors found by the official test thingy
2017-06-14 13:48:45 +02:00
saschalalala
3863b4f371
Rename shortcut functions to snake_case ( #661 )
...
* Rename shortcut functions to snake_case
* More function renaming
* Example function rewrite
* Add myself to authors.rst
* More function renaming
* Rename mockbot test functions
* Break comment line for flake max line length
2017-06-14 00:07:03 +02:00
alateas
6877886f7d
Change hard-coded 20. to timeout parameter ( #663 )
...
* Change hard-coded 20. to timeout paramter
Passing timeout parameter to _message_wrapper in send_audio instead of hard-coded 20 seconds
* add myself to contributors
2017-06-14 00:01:38 +02:00
Jeff
a68e0ad044
bugfixes on error in answer_shipping_query and answer_precheckout_query
2017-06-11 03:45:48 +08:00
Jannes Höke
179fc141bb
Merge branch 'master' of github.com:python-telegram-bot/python-telegram-bot
2017-06-10 21:24:28 +02:00
Noam Meltzer
da8a3cee44
Merge pull request #631 from jeffffc/paymenthandlers
...
Add both handlers for queries from new Payment API
2017-06-09 18:23:29 +03:00
Eldin
bc3669fa4b
make commandhandler case insensitive
2017-06-09 17:45:15 +03:00
Jeff
4247dc0e21
tiny changes upon PR review
2017-06-08 09:47:19 +08:00
Jacob Bom
896392d01e
Merge branch 'master' into fix-docs
2017-06-07 13:12:32 +02:00
Jacob Bom
61c5d6ff08
Remove more warnings
2017-06-07 13:07:45 +02:00
Jacob Bom
aa1c4e0e02
Fix most of "more than one target found for cross-reference" warnings
2017-06-07 12:53:02 +02:00
Noam Meltzer
0fb00c4c8b
When Promise running throws an uncaught exception - log it
2017-06-03 16:34:03 +03:00
Noam Meltzer
2680740316
Merge pull request #641 from azogue/fixes
...
fix setting default mimetype of inputfile
2017-06-03 00:22:32 +03:00
Jeff
eaf765dcbc
Remove duplicated/useless codes, added Filters.invoice test
2017-06-03 01:48:30 +08:00
Jeff
e9d08c6f7a
Merge branch 'master' into paymenthandlers-new
...
# Conflicts:
# telegram/bot.py
# telegram/message.py
# telegram/precheckoutquery.py
# telegram/shippingquery.py
2017-06-03 01:09:17 +08:00
Noam Meltzer
137ffe2e73
Merge remote-tracking branch 'origin/master' into payment
2017-06-01 22:01:04 +03:00
Noam Meltzer
c4b78673a3
payment: cr fixes
2017-06-01 21:52:47 +03:00
evgfilim1
5b1252ac2d
Perfomance optimizations
...
Using `or` instead of `|`
2017-06-01 16:36:32 +05:00
evgfilim1
d98b18d1e3
Added new status_update
filters
2017-06-01 07:09:30 +05:00
Jannes Höke
9d6c394b02
Bump version to v6.0.3
2017-05-29 22:55:15 +02:00
Jannes Höke
1951d6fdcd
Bump version to v6.0.2
2017-05-29 21:24:12 +02:00
azogue
b46bdf5304
fix setting default mimetype of inputfile
2017-05-29 08:30:29 +02:00
Noam Meltzer
cd24bb4ba5
payment: Small fixes
...
- Semantic fixes bot.py (if XXX is not None: ...).
- Documentation fixes (arguments which are optional).
2017-05-26 20:02:18 +03:00
Noam Meltzer
ae33d33580
Merge pull request #625 from python-telegram-bot/videonote
...
Add VideoNote
2017-05-26 19:34:13 +03:00
Noam Meltzer
706f79fa99
Fix setup.py with urllib3 vendoring
...
fixes #635
2017-05-26 19:24:54 +03:00
Noam Meltzer
a5bfc52326
videonote: Semantic fix according to CR
2017-05-26 18:36:21 +03:00
Noam Meltzer
858684ab64
Merge pull request #628 from python-telegram-bot/may18minor
...
May 18 minor changes
2017-05-26 18:23:31 +03:00
Jacob Bom
f4c6197c5f
Update filters to new_chat_members instead of new_chat_member
2017-05-25 14:45:47 +02:00