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
ecfcc69cf9
Fixed tests
2017-06-22 15:20:11 +05:00
evgfilim1
3bf4399a4f
Fixed tests
2017-06-20 12:49:01 +05:00
Jacob Bom
dba4739f76
Add a tiny test for unnamed filters
...
Increases coverage by 1 (one) line! Woo :D
2017-06-19 21:49:42 +02:00
evgfilim1
e18ebd035c
Added tests
2017-06-19 22:53:44 +05:00
Jacob Bom
01f3d88788
Update filter test
2017-06-18 16:25:48 +02:00
Jeff
b6ba66ba8e
Fix typo in filter test
2017-06-03 02:05:26 +08: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
evgfilim1
f66076b06c
Returned old tests
2017-06-01 16:37:39 +05:00
evgfilim1
d0f6860bac
Fixed tests to use new filters
2017-06-01 07:10:26 +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
73ac259721
fix typo...
2017-05-23 00:13:30 +08:00
Jeff
27238c52e2
add successful_payment filter under message
2017-05-22 23:39:28 +08:00
Jannes Höke
1c4c228cf1
add support for User.language_code ( #624 )
...
* add support for User.language_code
* Add language filter
Useful is you wanna do something like restrict your shop to a single or a few locales or something like that.
2017-05-21 14:00:53 +02: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
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
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
0cd7ecab50
fix test_filters_reply
2016-12-11 23:16:10 +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
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
Noam Meltzer
78088f4f6a
Fix grammer: 'a object' -> 'an object'
2016-10-17 01:22:40 +03:00
Jacob Bom
39832d2f6b
__str__ behaves differntly on py2 apparently.
2016-10-16 13:19:42 +02:00
Jacob Bom
5408c23e33
assertRegexMatches still exists for now. Use it.
2016-10-16 12:48:45 +02:00
Jacob Bom
29e0cc64e9
Fix py2 compat
2016-10-15 23:29:46 +02:00
Jacob Bom
f99b2f8f3b
Inprove coverage
2016-10-15 22:59:41 +02:00
Jacob Bom
b7c7612b3f
Add game filter
2016-10-07 22:37:29 +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
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
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
7ab007d8d4
Add Filters.entities test.
2016-09-13 20:47:43 +02:00
Leandro Toledo
80fbe98b44
Reflecting tests for Filters change
2016-05-27 21:14:55 -03:00
Leandro Toledo
880746baed
Column width to 90 #259
2016-05-14 21:52:35 -03:00
Jannes Höke
7f463131aa
re-order imports
2016-04-27 00:28:21 +02:00
Leandro Toledo
a79f636345
Formatting
2016-04-26 19:08:35 -03:00
Jannes Höke
a3dae1f112
use correct filter in command filter test
2016-04-26 23:49:59 +02:00
Jannes Höke
931b22f49e
tests for Filters
2016-04-26 23:42:58 +02:00