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

Answer with invoice #104

Closed
prtngn opened this issue Feb 9, 2023 · 1 comment
Closed

Answer with invoice #104

prtngn opened this issue Feb 9, 2023 · 1 comment

Comments

@prtngn
Copy link
Contributor

prtngn commented Feb 9, 2023

Hi. How I can send answer via ExGram.Dsl.Answer with included invoice?
And maybe you have good example for invoice and payments process?

@rockneurotiko
Copy link
Owner

You can't use ExGram.Responses.Answer to use the sendInvoice method, there are two ways of doing it:

  1. Create a new Response (ExGram.Responses.SendInvoice)
  2. Manually call ExGram.send_invoice/7 or ExGram.send_invoice/8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants