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;
 }
示例#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);
 }
示例#6
0
 public virtual TelegramMessageHandler CommandHelp(TelegramSession session, TelegramBotClient api, Message message, object state)
 {
     return(this);
 }