DEV Community

Trip Gang
Trip Gang

Posted on

How to receive data from webApp in telegraf.

I'd like to know how to receive data or event from webapp in telegraf.
I used grammy inline keyboard to open webapp.
here is the code.
import {InlineKeyboard} from 'grammy';

const keyboard = new InlineKeyboard()
.webApp('Deposit/Withdraw',
https://weehodl-web.netlify.app/wallets?solwallet=${userinfo.solWallet.publicKey}&ethwallet=${userinfo.ethWallet.publicKey}&chatid=${userinfo.telegramId}
);

I made webapp with react.
I don't how to send data from web app to bot and how to receive it on bot.
I need help.

Top comments (0)