You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an Example for TelegramBotClient.SendTextMessageAsync Method (String, String, Boolean, Boolean, Int32, IReplyMarkup, ParseMode, CancellationToken)
#5
Closed
A-Programmer opened this issue
Oct 3, 2016
· 3 comments
Please add an example for TelegramBotClient.SendTextMessageAsync Method (String, String, Boolean, Boolean, Int32, IReplyMarkup, ParseMode, CancellationToken).
I want to send Html content (just <br/> tag and <a> tag i need.)
TODO (optional): Describe a specific scenario you would like to see addressed.
varreply="<b>Hello</b>\n"+"<a href=\"https://www.google.de\">This is a link</a>\n"+"<code>and a little bit code</code>";await Bot.SendTextMessageAsync(message.Chat.Id, reply, parseMode: ParseMode.Html);
Hello Sir..
what to do if i want to send parameters in url??
i tried as
var reply = "Hello\n"
+ "<a href="..url?loginid=""+loginId+" > Click to login \n"
+ "and a little bit code";
await Bot.SendTextMessageAsync(chatId, reply, parseMode: ParseMode.Html);
but it is not appending that 'loginId' with url
sometime it gives Exception as
An exception of type 'Telegram.Bot.Exceptions.ApiRequestException' occurred in mscorlib.dll but was not handled in user code
Additional information: Bad Request: can't parse entities in message text: Expected equal sign in declaration of attribute of the tag "a" at byte offset 38
var reply = "Hello\n <a href="...url?loginid= '" + loginId + "' "> This is a link";
this is not showing link
Please add an example for TelegramBotClient.SendTextMessageAsync Method (String, String, Boolean, Boolean, Int32, IReplyMarkup, ParseMode, CancellationToken).
I want to send Html content (just
<br/>
tag and<a>
tag i need.)TODO (optional): Describe a specific scenario you would like to see addressed.
Help Topic: https://mrroundrobin.github.io/telegram.bot/html/M_Telegram_Bot_TelegramBotClient_SendTextMessageAsync_1.htm
The text was updated successfully, but these errors were encountered: