예제 #1
0
        /// <inheritdoc />
        public async Task <ICommandExecutionResult> HandleCommand()
        {
            var internalChatId = await authorizationService.RegisterChatAsync(CommandContext.ChatId);

            var authorizationUrl = crmService.GenerateCrmAuthorizationUrl(CommandContext.ChatId, internalChatId);

            return(new TextResult
            {
                TextMessage = @"
Open this link to authorize the bot:
" + authorizationUrl
            });
        }