public CmdTypes ParseForCommand(Update update) { if (update.Type == UpdateType.CallbackQueryUpdate) { return(CmdTypes.Unknown); } else if (update.Message.Type == MessageType.TextMessage) { var msgText = update.Message.Text; if (Restaurants.Contains(msgText)) { return(CmdTypes.Restrunt); } else if (msgText.ToLower() == "↩ назад") // todo { return(CmdTypes.Menu); } else { return(CmdTypes.Unknown); } } else if (update.Message.Type == MessageType.PhotoMessage) { return(CmdTypes.QRCode); } else { return(CmdTypes.Unknown); } }