telegram-payment-bot icon indicating copy to clipboard operation
telegram-payment-bot copied to clipboard

replyWithInvoice not defined

Open jbest2015 opened this issue 6 years ago • 3 comments

Trying to run this demo .. getting the following error when i choose the product. ReferenceError: replyWithInvoice is not defined at app.hears (C:\Users\jb\Source\Repos\GridLockBot2\index.js:52:9) at Promise.resolve.then (C:\Users\jb\Source\Repos\GridLockBot2\node_modules\telegraf\composer.js:93:56) at at process._tickCallback (internal/process/next_tick.js:188:7)

jbest2015 avatar Apr 06 '18 20:04 jbest2015

Your probably missing ctx

ctx.replyWithInvoice(createInvoice(p));

vrumger avatar Apr 09 '18 21:04 vrumger

Thank you , I could've swore I tried that , but I tried again and it worked. Thank you.

jbest2015 avatar Apr 11 '18 05:04 jbest2015

👌

vrumger avatar Apr 11 '18 05:04 vrumger