From 86f82808f1756fe05c93172e22611edc8d0d35b6 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 15 Apr 2024 16:02:14 +0200 Subject: [PATCH] Improve example --- README.md | 2 +- examples/1-all.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7903e45..be36ff2 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ $entities = Entities::fromHtml("This is a ❤️ nested test"); $sm($entities->message, entities: $entities->entities); // Convert markdown to an array of entities locally -$entities = Entities::fromHtml("This is a ❤️ nested test"); +$entities = Entities::fromMarkdown("*This is _a ❤️ nested_ test*"); $sm($entities->message, entities: $entities->entities); ``` diff --git a/examples/1-all.php b/examples/1-all.php index 5f49dc8..05a8b4c 100644 --- a/examples/1-all.php +++ b/examples/1-all.php @@ -50,7 +50,7 @@ $sm($entities->message, entities: $entities->entities); // Convert markdown to an array of entities locally -$entities = Entities::fromHtml("This is a ❤️ nested test"); +$entities = Entities::fromMarkdown("*This is _a ❤️ nested_ test*"); $sm($entities->message, entities: $entities->entities); // See https://github.com/danog/telegram-entities for the full list of available methods!