/// <summary> /// Sends a response through the bot /// </summary> /// <param name="msg">The text to send</param> /// <param name="level">Where to reply. Private = in PM, Public = The chat the message is from</param> /// <param name="replyMarkup">Reply markup. Optional</param> /// <param name="parseMode">How the text should be parsed</param> public CommandResponse(string msg, ResponseLevel level = ResponseLevel.Public, Menu menu = null, ParseMode parseMode = ParseMode.Default) { Text = msg; Level = level; Menu = menu; ParseMode = parseMode; }
/// <summary> /// Sends a response through the bot /// </summary> /// <param name="msg">The text to send</param> /// <param name="level">Where to reply. Private = in PM, Public = The chat the message is from</param> /// <param name="replyMarkup">Reply markup. Optional</param> /// <param name="parseMode">How the text should be parsed</param> public CommandResponse(string msg, ResponseLevel level = ResponseLevel.Public, Menu menu = null, ParseMode parseMode = ParseMode.Default, string imgUrl = null) { Text = msg; Level = level; Menu = menu; ParseMode = parseMode; ImageUrl = imgUrl; }
/// <summary> /// Sends a response through the bot /// </summary> /// <param name="msg">The text to send</param> /// <param name="level">Where to reply. Private = in PM, Public = The chat the message is from</param> /// <param name="replyMarkup">Reply markup. Optional</param> /// <param name="parseMode">How the text should be parsed</param> public CommandResponse(string msg = null, ResponseLevel level = ResponseLevel.Public, Menu menu = null, ParseMode parseMode = ParseMode.Default, string imgUrl = null, string callbackCaption = null, bool previewHtml = true) { Text = msg; Level = level; Menu = menu; ParseMode = parseMode; ImageUrl = imgUrl; CallbackCaption = callbackCaption; PreviewHtml = previewHtml; }
public ServerResponse(ResponseLevel responseLevel, string message) { ResponseLevel = responseLevel; Message = message; }