Closed johnnguyen-nodejs closed 7 months ago
const address = "0x235fF667f9F4eC9F84d886Bd4e9361d0409b0CC0" const url = await QRCode.toBuffer(ethereum:${address}?value=${rd(Number(0.1)*1e18, 0)}, { width: 400}) await ctx.replyWithPhoto(url, { caption:👋 Hi, ${ctx.from.first_name}! \n\n🌟 Deposit To Upgrade: \n\n💳 Address: VGpLHmTqkGxcwkVzVypAUpyxccCqexiPgtmjQJWirSy\n🔸Chain: BSC\n💰 Amount: 0.1 BNB, parse_mode: 'HTML'})
const address = "0x235fF667f9F4eC9F84d886Bd4e9361d0409b0CC0" const url = await QRCode.toBuffer(
, { width: 400}) await ctx.replyWithPhoto(url, { caption:
VGpLHmTqkGxcwkVzVypAUpyxccCqexiPgtmjQJWirSy
0.1
, parse_mode: 'HTML'})
Not working, please help
Please start reading documentation: https://grammy.dev/guide/files#uploading-raw-binary-data
const address = "0x235fF667f9F4eC9F84d886Bd4e9361d0409b0CC0" const url = await QRCode.toBuffer(
ethereum:${address}?value=${rd(Number(0.1)*1e18, 0)}, { width: 400}) await ctx.replyWithPhoto(url, { caption:
👋 Hi, ${ctx.from.first_name}! \n\n🌟 Deposit To Upgrade: \n\n💳 Address:VGpLHmTqkGxcwkVzVypAUpyxccCqexiPgtmjQJWirSy
\n🔸Chain: BSC\n💰 Amount:0.1
BNB, parse_mode: 'HTML'})
Not working, please help