SanderVantEinde.SecretHitlerBot.MessageHandlers.PickPlayerFlow.HandleMessageAsync C# (CSharp) Метод

HandleMessageAsync() защищенный Метод

protected HandleMessageAsync ( TelegramBot bot, Message m, MessageHandlerType type ) : Task
bot SanderVantEinde.TelegramBot.TelegramBot
m SanderVantEinde.TelegramBot.Message
type MessageHandlerType
Результат Task
        protected async override Task<TelegramBotReply> HandleMessageAsync(TelegramBot.TelegramBot bot, Message m, MessageHandlerType type)
        {
            foreach(var user in game.Players)
            {
                if(user.ToString() == m.Text)
                {
                    var val = await onPlayerPicked(user, bot, m, game);
                    if (val != null)
                        return val;
                    MessageFlow.Failed();
                    return Message(m, "Wrong user", replyMarkup: GetKeyboard());
                }
            }
            MessageFlow.Failed();
            return Message(m, "Wrong user", replyMarkup: GetKeyboard());
        }
        public ReplyKeyboardMarkup GetKeyboard()