internal static void HandleSurahQuery(CallbackQueryEventArgs e, TelegramBotClient bot) { isPresent(e); JsonData.users[e.CallbackQuery.Message.Chat.Id].langChoice = e.CallbackQuery.Data; List <Surahs> surahTemp = ChooseBook(e); Users userTemp = JsonData.users[e.CallbackQuery.Message.Chat.Id]; SendAyah(bot, userTemp, ButtonsHandler.NavKB, e, surahTemp); OnMessageHandler.MoveAyah(e.CallbackQuery.Message.Chat.Id); }
private static void Bot_OnMessage(object sender, Telegram.Bot.Args.MessageEventArgs e) { OnMessageHandler.MessageHandler(sender, e, bot); }