jsaalfeld / pr0gramm_telegram_bot

A Telegram Bot for pr0gramm
1 stars 0 forks source link

Threaded message handling #19

Open Dazzel opened 8 years ago

Dazzel commented 8 years ago

Responding to an message which includes downloading and uploading an new image (if not cached) takes a while. This should be done with threads per incoming message.

Especially converting #5 gifs and webms will take some time. Here we have to check if an image is currently converted when it is requested multiple times and wait for the outcome of the thread which converts the image.