fix crucial typo in filters

This commit is contained in:
Jeff 2017-05-22 23:42:09 +08:00
parent 27238c52e2
commit 96171112bf

View file

@ -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`