scmanjarrez / EdgeGPT-Telegram-Bot

Telegram bot using EdgeGPT unofficial API
MIT License
62 stars 22 forks source link

Ability to ask to send as multiple messages instead of .MD #103

Open Eikosa opened 1 year ago

Eikosa commented 1 year ago

It would be better for me if it would send multiple messages instead of sending a md file when it needs a long reply, I think a setting could be added for that.

scmanjarrez commented 1 year ago

I accept PRs. I've tried this before but opted for just sending the .md file due to the complexity in splitting file without breaking the telegram markdown/html parser. If code is involved, too many edge cases have to be taken into account to catch possible errors.

Eikosa commented 1 year ago

I accept PRs. I've tried this before but opted for just sending the .md file due to the complexity in splitting file without breaking the telegram markdown/html parser. If code is involved, too many edge cases have to be taken into account to catch possible errors.

It would be good for me even if the Markdown format sends it corrupted, because it is very difficult to open the file every time.

Eikosa commented 1 year ago

Also, as far as I know, Pyrogram can solve this very easily, even if it is a broken markdown, it can send messages without any problem.

scmanjarrez commented 1 year ago

Maybe. But I use python-telegram-bot. Also this isn't a problem related to the library but the telegram bot API, that only allows a subset of html/markdown tags