Sitelet https://web.archive.org/web/20201210055515/https://github.com/pyrogram/pyrogram/issues/376
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot payments #376

Open
acforvs opened this issue Mar 5, 2020 · 1 comment
Open

Bot payments #376

acforvs opened this issue Mar 5, 2020 · 1 comment

Comments

@acforvs
Copy link

@acforvs acforvs commented Mar 5, 2020

Add methods like 'send_invoice' and updates such as 'successful payment' because it looks like there is no way to use payments API with Pyrogram right now.

@delivrance
Copy link
Member

@delivrance delivrance commented Mar 19, 2020

@acforvs Thanks for your suggestion!

Indeed, Pyrogram doesn't provide any friendly method yet for bot payments, but you can always use the raw API anytime, as explained here: https://docs.pyrogram.org/topics/advanced-usage.

In particular, you could experiment with payment methods and types (as far as I know, there's no proper documentation on how the payment MTProto API works and so far a pretty big chunk of the entire library was developed by experiments against the undocumented Telegram API).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.