Skip to content

Send multiple images in parallel #2944

@MasIgor

Description

@MasIgor

Issue I am facing

Hello!

I would need to send a Burst of 5 images. My software gets one image every 700ms from the camera, 5 times in a row, and then there is a pause. Each time a Image arrives (it is not stored on the drive, only on memory) its sent via Telegram. the Send_photo takes 3 seconds, so the speed at witch telegram should send is higher than the time a single photo takes to be aquired. is there a way to initiate a new send_photo in parallel to the previous one? I wouldnt mind if the send order gets mixed up, i just need all of them to be sent.

Thank you

Traceback to the issue

No response

Related part of your code

No response

Operating System

windows 10

Version of Python, python-telegram-bot & dependencies

python-telegram-bot 13.11
Bot API 5.7
certifi 2021.10.08
Python 3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64 bit (AMD64)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions