Html/Markdown conversions:
Some checks failed
Dev build / build (push) Has been cancelled

- Support for MessageEntityFormattedDate
- Removed premium optional arg (always true now)
- Stopped supporting non-standard markdown "emoji?id=". Correct syntax is "tg://emoji?id="
This commit is contained in:
Wizou 2026-04-01 05:31:24 +02:00
parent 6611e8675b
commit 24dbbcf66b
2 changed files with 43 additions and 19 deletions

View file

@ -365,7 +365,7 @@ await Task.Delay(5000);
```csharp
// • Sending a message with custom emojies in Markdown to ourself:
var text = "Vicksy says Hi! ![👋](tg://emoji?id=5190875290439525089)";
var entities = client.MarkdownToEntities(ref text, premium: true);
var entities = client.MarkdownToEntities(ref text);
await client.SendMessageAsync(InputPeer.Self, text, entities: entities);
// also available in HTML: <tg-emoji emoji-id="5190875290439525089">👋</tg-emoji>