Skip to content

v4.2.0

Compare
Choose a tag to compare
@justdmitry justdmitry released this 15 Dec 09:45
· 7 commits to master since this release
v4.2.0

Extensions method added to string: MarkdownEncode(this string value).

Use it when building markdown message from parts, obtained from "unsafe" sources:

new SendMessage(message.Chat.Id, "Hello, " + message.From.Username?.MarkdownEncode() + "!")
{
        ParseMode = SendMessage.ParseModeEnum.Markdown
}