You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like already implemented but not published yet. Currently you can use like this for processing the refund.
this.bot.onText(/^\/refund(\s)(.*)/,async(msg,match)=>{console.log("refund",msg,match);constform={user_id: msg.from.id,telegram_payment_charge_id: match[2]}// @ts-ignoreconstrefund=awaitthis.bot._request('refundStarPayment',{ form });this.bot.sendMessage(msg.chat.id,`your payment has been refunded`);});
I'm using "node-telegram-bot-api": "^0.66.0"
The TelegramBot don't have refundStarPayment method.
How could I implement refund function in Telegram Bot.
The text was updated successfully, but these errors were encountered: