Closed mirismaili closed 4 years ago
It seems markdown formatting is enabled by default. So I change the requested feature to be able to customize it (html
, markdown
, plain
, etc).
And to well-documenting it. Current documentation says:
const menu = new TelegrafInlineMenu(text, {photo})
Creates a new Menu. ...
text
is the text in the message itself. This can be astring
orfunction(ctx)
...
With the current version 4 of the library the text is always assumed to be Markdown.
I am currently working on an overhaul (see #32). It will introduce breaking changes and it will also address this issue: Ability to select your own parse_mode.
Hi, using markdown I can insert an image in the text of the select and button menu ?
Like this ...
[Text](link image)
Massimo
images can not be included via the formatting options available currently. Links to images are possible.
But I think that is unrelated to the issue of not having support for the different parse_mode
s in this library.
Take a look at Can I use HTML / MarkdownV2 in the message body? for the upcoming version 5.
Thanks for bringing this up!
Possibility to use a formatted text as menu's main message. For example:
or:
Thank good library