unreal4u / telegram-api

Complete async capable Telegram bot API implementation for PHP7
https://github.com/unreal4u/telegram-api/wiki
MIT License
790 stars 174 forks source link

Style entities decoder #141

Closed LucaDevelop closed 2 years ago

LucaDevelop commented 2 years ago

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.

LucaDevelop commented 2 years ago

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

unreal4u commented 2 years ago

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!