Exemple #1
0
        private async Task <bool> ValidateEFType()
        {
            try
            {
                var feeType = EnumString.ToDescription <FeeType>(this.Update.Command);
                this.Update.UserContext.SetContext("EntryFee_Type", feeType);
                return(true);
            }
            catch (ArgumentException)
            {
                await this.Client.SendMessageAsync(
                    this.Update.UserContext.TelegramId,
                    "Please choose from keyboard items.");

                await this.EnteringEFType();

                return(false);
            }
        }