rockneurotiko / ex_gram

Telegram Bot API low level API and framework
182 stars 26 forks source link

Answer with invoice #104

Closed prtngn closed 1 year ago

prtngn commented 1 year ago

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 commented 1 year ago

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