Beispiel #1
0
 public static async Task <Message?> SendOrUpdateMessage(this ITelegramBotClient bot, long chatId, string?text, IReplyMarkup replyMarkup = null, bool onlysend = false, CancellationToken ct = default(CancellationToken))
 {
     if (bot == null)
     {
         return(null);
     }
     return(await bot.SendOrUpdateMessage(GetChat(bot, chatId), text, replyMarkup, onlysend, ct));
 }