Skip to content

Conversation

@jeffffc
Copy link
Contributor

@jeffffc jeffffc commented May 22, 2017

Added PreCheckoutQueryHandler and ShippingQueryHandler

Copy link
Member

@jh0ker jh0ker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good on a first glance, just two minor comments for now

return data

def answer(self, *args, **kwargs):
"""Shortcut for ``bot.answerPreCheckoutQuery(update.callback_query.id, *args, **kwargs)``"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docstring has callback_query instead of pre_checkout_query

return data

def answer(self, *args, **kwargs):
"""Shortcut for ``bot.answerShippingQuery(update.callback_query.id, *args, **kwargs)``"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

user = self.shipping_query.from_user

elif self.pre_checkout_query:
user = self.pre_checkout_query
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a .user here?

@jh0ker jh0ker merged commit 3767d26 into python-telegram-bot:beta May 22, 2017
@jh0ker
Copy link
Member

jh0ker commented May 22, 2017

Thanks :) Can you open the PR again, to the master branch?

@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants