rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.72k stars 1.19k forks source link

How can i send photo via sendPhoto method in the async way? #494

Open CheremisinVladislav opened 6 years ago

CheremisinVladislav commented 6 years ago

Hey, I have built a bot which replies with images when a command is passed to it. When messaged are being sent from two devices simultaneously, images are sent in turns.First to one device. Next to another. Does it mean that longpolling handle a request in the sync way or i don't setup it proper way?

abvadabra commented 5 years ago

Any updates on this one? It would be useful to have async version for uploading documents, videos, photos, etc, built in and not having to setup your own async queue.

rubenlagus commented 5 years ago

New sendXXXXXAsync method could be added without issues, a pull request would be appreciate through.

genjiezio commented 3 years ago

I 'll try to work on this,any advice is appeciated.