telegram-twitter-forwarder-bot icon indicating copy to clipboard operation
telegram-twitter-forwarder-bot copied to clipboard

Cannot show the first tweet after subscription if the username of twitter account has _

Open marco2632 opened this issue 3 years ago • 4 comments

螢幕擷取畫面 2021-02-26 043537 I faced this problem several times and i found that the problem only happens when the username is including _ like adidas_ES the problem only happens on the first post after subscription. Can the problem be fixed by editing markdown_twitter_usernames in util.py? I am just guessing cuz i am green to python.

marco2632 avatar Feb 25 '21 20:02 marco2632

Yes. I disabled everything:

Am 25.02.2021 um 21:43 schrieb marco2632 [email protected]:



I faced this problem several times and i found that the problem only happens when the username is including _ like adidas_ES the problem only happens on the first post after subscription. Can the problem be fixed by editing markdown_twitter_usernames in util.py? I am just guessing cuz i am green to python.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Adem1987 avatar Feb 25 '21 22:02 Adem1987

Also try changing the code here and there and look what happens. Investigate a little bit. See what Code x does.

If you want to show code or the terminal output, use pastebin or anything similar.

Have a nice day.

Am 25.02.2021 um 23:28 schrieb Adem Acar [email protected]:

 Yes. I disabled everything:

<image0.png>

Am 25.02.2021 um 21:43 schrieb marco2632 [email protected]:



I faced this problem several times and i found that the problem only happens when the username is including _ like adidas_ES the problem only happens on the first post after subscription. Can the problem be fixed by editing markdown_twitter_usernames in util.py? I am just guessing cuz i am green to python.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Adem1987 avatar Feb 25 '21 22:02 Adem1987

I tried to edit markdown_twitter_usernames in util.py but problems still happen. I will try other way later.

2021-02-28 23:12:36,476 - TwitterForwarderBot - DEBUG - Sending tweet 1365219695092236288 to chat 148110932... 2021-02-28 23:12:36,666 - TwitterForwarderBot - INFO - Couldn't send tweet 1365219695092236288 to chat 148110932: "Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 530"

marco2632 avatar Feb 28 '21 15:02 marco2632

Okay I found the problem is from ParseMode. If i change the code from Markdown to html, it works

marco2632 avatar Feb 28 '21 16:02 marco2632