A tagged template literal function that builds a message with entities.
This allows you to avoid using parse_mode when sending messages,
and instead use this helper to create the entities array
in a composable manner.
Parameters
strings: string[] | TemplateStringsArray
Rest...values: (string | DecoratedText)[]
Returns DecoratedText
Example
buildMessage`Hello ${entity("world", { type:"bold" })}!` // => "world" will be bold in the message
A tagged template literal function that builds a message with entities. This allows you to avoid using
parse_mode
when sending messages, and instead use this helper to create theentities
array in a composable manner.