Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

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

Open
Eikosa opened this issue Aug 30, 2023 · 4 comments
Open

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

Eikosa opened this issue Aug 30, 2023 · 4 comments

Comments

@Eikosa
Copy link
Contributor

Eikosa commented Aug 30, 2023

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
Copy link
Owner

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
Copy link
Contributor Author

Eikosa commented Aug 30, 2023

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
Copy link
Contributor Author

Eikosa commented Aug 30, 2023

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
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants