grammyjs / grammY

The Telegram Bot Framework.
https://grammy.dev
MIT License
2.17k stars 110 forks source link

send image Buffer error #523

Closed johnnguyen-nodejs closed 7 months ago

johnnguyen-nodejs commented 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'})

Not working, please help

KnorpelSenf commented 7 months ago

Please start reading documentation: https://grammy.dev/guide/files#uploading-raw-binary-data