public AuthorizationService( IMemoryCache memoryCache, TelegramChatService chatService, IDataProtectionProvider dataProtectionProvider) { cache = memoryCache; this.chatService = chatService; dataProtector = dataProtectionProvider.CreateProtector("AccessToken"); }
public AuthorizationController( TelegramBot bot, AuthorizationService authorizationService, CrmService crmService, UserService userService, TelegramChatService telegramChatService) { telegramBot = bot; this.authorizationService = authorizationService; this.crmService = crmService; this.userService = userService; this.telegramChatService = telegramChatService; }
public BroadcastMessageCommand(TelegramChatService chatService, ConversationService conversationService) { this.chatService = chatService; this.conversationService = conversationService; }