public virtual TelegramMessageHandler HandleMessage(TelegramSession session, Api api, Message message, object state)
 {
     return this;
 }
 public override TelegramMessageHandler HandleMessage(TelegramSession session, Api api, Message message, object state)
 {
     api.SendTextMessage(message.Chat.Id, Text, DisableWebPagePreview, ReplyToMessageId, ReplyMarkup, IsMarkdown);
     return(this);
 }
 public virtual TelegramMessageHandler HandleMessage(TelegramSession session, Api api, Message message, object state)
 {
     return(this);
 }
 public override TelegramMessageHandler HandleMessage(TelegramSession session, Api api, Message message, object state)
 {
     api.SendTextMessage(message.Chat.Id, Text, DisableWebPagePreview, ReplyToMessageId, ReplyMarkup, IsMarkdown);
     return this;
 }
Example #5
0
 public override TelegramMessageHandler HandleMessage(TelegramSession session, TelegramBotClient api, Message message, object state)
 {
     api.SendTextMessageAsync(message.Chat.Id, Text, IsMarkdown ? ParseMode.Markdown : ParseMode.Default, DisableWebPagePreview, false, ReplyToMessageId, ReplyMarkup);
     return(this);
 }
Example #6
0
 public virtual TelegramMessageHandler CommandHelp(TelegramSession session, TelegramBotClient api, Message message, object state)
 {
     return(this);
 }