'How send hyperlink embed into a string in Telegram with bot?
I want to understand if it's possible and how do it: "How send a hyperlink into the word in the Telegram." I'm using Telegram API and if I try to send a Link string it appears like "https://www.google.it/" and not like Link.
Thank you for attention.
Solution 1:[1]
When we using TelegramBotClient, we can show links on buttons. I do it with the markdown type
var text = $"Select search engine mode";
var inlineKeyboard = new InlineKeyboardMarkup(
new[]
{
InlineKeyboardButton.WithUrl("System 1", $"https://google.com/"),
InlineKeyboardButton.WithUrl("System 2", $"https://yandex.ru/")
});
await botClient.SendTextMessageAsync(
yourChatId,
text,
replyMarkup: inlineKeyboard,
parseMode: ParseMode.Markdown)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | PhiseySt |
