mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-08 19:34:12 +01:00
fix crucial typo in filters
This commit is contained in:
parent
27238c52e2
commit
96171112bf
1 changed files with 3 additions and 3 deletions
|
@ -238,12 +238,12 @@ class Filters(object):
|
|||
|
||||
game = _Game()
|
||||
|
||||
class _ShippingQuery(BaseFilter):
|
||||
class _SuccessfulPayment(BaseFilter):
|
||||
|
||||
def filter(self, message):
|
||||
return bool(message.shipping_query)
|
||||
return bool(message.successful_payment)
|
||||
|
||||
shipping_query = _ShippingQuery()
|
||||
successful_payment = _SuccessfulPayment()
|
||||
|
||||
class entity(BaseFilter):
|
||||
"""Filters messages to only allow those which have a :class:`telegram.MessageEntity`
|
||||
|
|
Loading…
Reference in a new issue