Repository navigation
Replies: 13 comments 12 replies
|
Let's start from the very beginning. Definitely I don't know where to start with these spaghetti, I'll start from API functions... And go step by step, I'll try to get that crap... Step 1. We have telebot.send_media_group. Where for these types we have at least "media" and "thumbnail". Question1 Question2 |
|
While waiting, I'll go firther to finish at least one path. telebot.send_media_group goes to apihelper.send_media_group. apihelper.send_media_group uses convert_input_media_array to process media/thumbnail. This means "str" is passed "as is" while for other it defines "attach". OK. Then convert_input_media_array process json_dict['media'] as: I.e. left strings "as is", and for non-strings (InputFile?! N2) attaches it to "files" which goes to request. and process json_dict['thumbnail '] as: I.e. left strings "as is", and only for InputFile (N2) attaches it to "files" which goes to request. Question 3. Question 4. Let's no check tests for test_send_media_group. Strings are passed. It's ok. Question 5 (reference to Question 1). Question 6 (reference to Question 4). |
|
@coder2020official I do not hurry you, just please let me know if you saw this and will take a look when you'll hve some time. |
|
Hi, just saw it, sorry. Will take a look tonight hopefully |
|
Thank you for your answers. ❤️ Let's proceed with these Q&A before go further. Point 1. Point 2. |
|
@coder2020official Looks I'm done with questions. |
|
Hope my answers help. I guess we need a more straightforward approach. Have all to_dict s return attach:// and have a separate function to return all files in a dict? then process lists in apihelper by merging these dicts of files to be uploaded |
|
There's an API update btw |










Uh oh!
There was an error while loading. Please reload this page.
@coder2020official Okay, I definitely need help with media. I never understand it well, neither now.
All reactions