gotd / td

Telegram client, in Go. (MTProto API)
MIT License
1.42k stars 125 forks source link

message: Markdown styling for text messages #214

Open tdakkota opened 3 years ago

tdakkota commented 3 years ago

It would be nice to support BotAPI-like formatting in StyledText function.

It should be a special StyledTextOption, like html.String. Example:

sender.Self().StyledText(ctx, md.String("**abc**")) // Sends bold styled 'abc'

I think https://github.com/yuin/goldmark is nice to make a Markdown parser.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.