How to send transparent png with sendphoto in telegram bot?

252 Views Asked by At

Telegram always adds the white background to my transparent .png images when I send them via sendphoto. But how to keep them transparent as the source?

1

There are 1 best solutions below

0
Sreelal TS On

Transparent PNGs won't work with sendPhoto, compression removes transparency. Use sendDocument to maintain the transparent background.