Esempio n. 1
0
        /// <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;
        }
Esempio n. 2
0
        /// <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;
        }
Esempio n. 3
0
        /// <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;
        }
Esempio n. 4
0
 public ServerResponse(ResponseLevel responseLevel, string message)
 {
     ResponseLevel = responseLevel;
     Message = message;
 }