Exemple #1
0
        private async Task <Message> GetResponseAsync()
        {
            var message = await manager.GetResponseAsync();

            if (message.Text == "/cancel")
            {
                await manager.SendTextMessageAsync($"Действие отменено.\n{UserHelp}", resetMarkup);

                throw new BotCancelOperationException("User interrupted session");
            }

            return(message);
        }