Closed zzcddd closed 1 year ago
@zzcddd cannot reproduce
>>> cl.direct_send("Link to https://gmail.com/ (test)", user_ids=[61054097570])
DirectMessage(id='31185384299056336558032414757093376', user_id=None, thread_id=340282366841710301244276020304025120547, timestamp=datetime.datetime(2023, 7, 28, 16, 51, 10, 341611, tzinfo=datetime.timezone.utc), item_type=None, is_sent_by_viewer=None, is_shh_mode=None, reactions=None, text=None, reply=None, link=None, animated_media=None, media=None, visual_media=None, media_share=None, reel_share=None, story_share=None, felix_share=None, xma_share=None, clip=None, placeholder=None)
I found a bug, when using the direct_send api, the parameter text will throw an exception when carrying an http link, the exception information is as follows:
During handling of the above exception, another exception occurred:
I trace the source code found that this piece of code has a problem,
if the judgment is established, it will throw an exception, I hope the big guy help me solve it