Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style entities decoder #141

Merged
merged 6 commits into from
Apr 4, 2022
Merged

Style entities decoder #141

merged 6 commits into from
Apr 4, 2022

Conversation

LucaDevelop
Copy link
Contributor

Hi there,
I've created this class to read the text (or the caption) and the entities from message object and return the text with inline entities (HTML, MarkdownV2 or Markdown) that replicate the original styles but with the possibility to manipulate it afterwards.
I've used it in several bots of mine alongside your library and I've decide to add it directly in the Message class.

This is the repo of my class: https://github.com/LucaDevelop/telegram-entities-decoder

I hope it can be useful.

Copy link
Owner

@unreal4u unreal4u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi!

Thanks for submitting this PR!

While I am a bit reticent to add methods to a Type (which comes from Telegram themselves) I understand there is no other place where we could do this type of stuff and there would need to be some major refactoring in order for us to be able to do this in any other way.

Can you pick up the comments I left so that I can approve it? Thanks!

src/Telegram/Types/Message.php Outdated Show resolved Hide resolved
src/Telegram/Types/Message.php Outdated Show resolved Hide resolved
src/Telegram/Types/Message.php Show resolved Hide resolved
src/Telegram/Types/Message.php Outdated Show resolved Hide resolved
@LucaDevelop
Copy link
Contributor Author

Hi,
thanks for considering my PR. I'm on it with the changes you've requested.

@LucaDevelop LucaDevelop requested a review from unreal4u January 24, 2022 15:59
@unreal4u
Copy link
Owner

unreal4u commented Apr 4, 2022

Sorry it took so long @LucaDevelop but I didn't receive ANY notification of your changes! Just happened to stumble across it now and saw that you submitted all changes, I'll review my notification settings so it doesn't happen again!

@unreal4u unreal4u merged commit 75de82d into unreal4u:master Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants