Пример #1
0
 public static Task <Message> Send_Message(string text, Chat chat, InlineKeyboardMarkup markup, int debug)
 {
     Debug.WriteLine("CHAT ID:" + chat.Id);
     Debug.WriteLine("CHAT Text:" + text);
     Debug.WriteLine(markup != null ? "CHAT markup:" + markup.ToString() : "");
     bot.SendChatActionAsync(chat.Id, Telegram.Bot.Types.Enums.ChatAction.Typing);
     return(bot.SendTextMessageAsync(chat.Id, text, replyMarkup: markup));
 }