{"repo":"LucaDevelop/telegram-entities-decoder","free":true,"listed":false,"github":"https://github.com/LucaDevelop/telegram-entities-decoder","clone":"git clone https://github.com/LucaDevelop/telegram-entities-decoder.git","description":"Telegram entities decoder in PHP","language":"PHP","stars":34,"topics":["telegram","telegram-bot","telegram-bot-api","entities","markdown","html","php","php7"],"license":"MIT","category":"chat-messaging","readme_excerpt":"telegram-entities-decoder This class decode style entities from Telegram bot messages (bold, italic, etc.) in text with inline entities that duplicate (when possible) the exact style the message had originally when was sended to the bot. All this work is necessary because Telegram returns offset and length of the entities in UTF-16 code units that they've been hard to decode correctly in PHP Consider to ⭐️ Star this project Compatibility PHP = 7.0 Features - Decode entities from text messages and attachments caption. - Supports all Telegram parse modes (Markdown, HTML and MarkdownV2). HTML has more entropy but it's easily the best and it's recommended. - Supports emoji in the text field - Easy to use NOTE: Markdown parse mode is deprecated and no longer up-to-date so it doesn't support all entities. Use MarkdownV2 or HTML. Example usage See demo folder for full example Composer Usage: Credits - Telegram docs: https://core.telegram.org/bots/api#formatting-options - Inspired By: https://github.com/php-telegram-bot/core/issues/544#issuecomment-564950430 Contacts @LucaDevelop","default_branch":null,"files":null,"tree":[],"storefront":"/r/LucaDevelop","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/LucaDevelop/telegram-entities-decoder/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}