-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding sleep to load image in case of bulk messages #93
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @arsalankhan994. First of all, thanks a lot for contributing!
One question: any reason for an exact 0.3
sleep? It seems like a really specific value. Can you test + provide further info if that fits all possible cases you are attempting to address?
Thanks a lot!
Hi @euriconicacio, I hope you are well. The problem that I was facing is that when I called send_picture inside the loop, then some of the images are not sent properly and shows an error icon because the browser close immediately after sending an image. So I tested this same case with 0.1 sleep, then 0.2 and then 0.3, and it perfectly worked on 0.3 seconds. I have tested this same thing with different images and attachments and I think that it should work in all cases. Thanks |
Hi, @arsalankhan994! Thanks for the reply.
Please, let us know if that's not possible, so we can pull your branch and run them. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional tests were requested in a separate comment. Main goal: use the ideal value for the proposed sleep.
Btw, @arsalankhan994, can you please set that as a global variable? Thanks.
Hi, @arsalankhan994. Any update on the requested test outputs? Thanks. Hi, @b98430. I will be deleting your comment from this PR. Please, address it as an issue. Thanks. |
No description provided.