Jacob Bom
2ca7ff82ef
Update headers to 2018 ( #962 )
...
Also add two missing headers.
[ci skip]
2018-01-04 17:16:06 +02:00
Noam Meltzer
4b3315db6f
Fix race condition in dispatcher start/stop ( #887 )
...
fixes #881
2017-10-21 14:40:24 +03:00
Jannes Höke
3ed05991ad
log error trace if there is no error handler registered ( #694 )
2017-10-21 12:35:11 +03:00
Simon Schürrle
bb5357a815
Fix typo in the docstring ( #878 )
...
Changed `Filters.status_update.new_chat_member` to `Filters.status_update.new_chat_members`
Thanks to @ajbvn for pointing it out.
[ci skip]
2017-10-18 22:00:17 +03:00
Jacob Bom
8df35fd53b
Fix for crashes on 8.1 ( #873 )
...
* Make Commandhandler not crash on single char messages
* Bump release and update CHANGES.rst for 8.1.1
* No error on single / and test
2017-10-15 16:59:10 +02:00
Eldinnie
28680ac1d5
edited_updates also for channel_posts ( #832 )
2017-10-14 23:48:06 +03:00
Jannes Höke
ec9b16ac7b
Fix command not recognized if it is directly followed by a newline ( #869 )
...
fixes #868
2017-10-14 21:04:02 +03:00
Noam Meltzer
8a8b1215c8
Fix documentation of Request object initialization (for advanced users) ( #866 )
...
fixes #676
2017-10-12 00:39:09 +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
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
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
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
Eldinnie
b04869f36a
docstring correction ( #775 )
...
[ci skip]
2017-08-08 00:11:44 +03:00
Noam Meltzer
5ceb6f8f36
Docs fixes ( #765 )
...
* Clean warnings during build_sphinx
* fix documentation types
2017-08-02 05:56:07 +03:00
Ihor Polyakov
6aacde189e
Flow control ability in Dispatcher ( #738 )
...
fixes #666
2017-07-29 20:15:43 +03:00
Eldinnie
2ba7505eaf
Fix TypeError exception in RegexHandler ( #751 )
...
fixes #750
2017-07-28 20:47:42 +03:00
Eldinnie
b3b94240a5
Docs update ( #728 )
...
Amazing new documentation.
2017-07-23 23:33:08 +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
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
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
Jacob Bom
04acbc4117
Remove the need for calling super() in filters
2017-06-21 13:46:03 +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
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
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
aa1c4e0e02
Fix most of "more than one target found for cross-reference" warnings
2017-06-07 12:53:02 +02: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
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
Jacob Bom
f4c6197c5f
Update filters to new_chat_members instead of new_chat_member
2017-05-25 14:45:47 +02:00
Jeff
96171112bf
fix crucial typo in filters
2017-05-22 23:42:09 +08:00