on my website canvas, where (for example) user can draw signature, or some figures, and also i have button, that sends this picture from canvas to telegram bot using sendData(data), but according to this page i can only send up to 4096 bytes, but my canvas uses a lot more bytes, so i can't send canvas picture to bot. My question is: how can i get around this restriction and send canvas to bot, without any loss?
P.S. In Telegram Web App introduction video in we can see canvas with picture, where we can add multiple colors, and draw text, so I wanted to make something similar.
Save the drawing file in your server and make the bot grab it fron there.
Обсуждают сегодня