I am writing a telegram to the bot. I ran into such a problem. I need the bot to send a message (text) when clicked on which it was copied (as a token from @BotFather) I use node.js
Asked
Active
Viewed 325 times
0
-
Does this answer your question? [How to make that when you click on the text it was copied pytelegrambotapi](https://stackoverflow.com/questions/59713920/how-to-make-that-when-you-click-on-the-text-it-was-copied-pytelegrambotapi) – 0stone0 Feb 06 '23 at 10:25
-
Wrap it in backticks and set it to markdown parse mode. – 0stone0 Feb 06 '23 at 10:49
1 Answers
0
thanks for reaching out.
You can simply do that with <code>
formatting. The below code can do this:
bot.sendMessage(msg.chat.id, "<code>Hello World Copiable!</code>", {
parse_mode: "HTML",
});
Regards.

Sreelal TS
- 912
- 6
- 11