public SessionCommunicator(long chatId, BotClientWrapper botClient, IObservable <string> messages, IObservable <string> replies, IObservable <Location> locationMessages, MessageFactory messageFactory, MessageSender messageSender) { _chatId = chatId; _botClient = botClient; Messages = messages; Replies = replies; LocationMessages = locationMessages; _messageFactory = messageFactory; _messageSender = messageSender; }
public TelegramAccountsHandler(SubscriptionFactory subscriptionFactory, IChatsRepository chatsRepository, BotClientFactory botClientFactory, MessageFactory messageFactory, MessageSender messageSender) { _subscriptions = subscriptionFactory.Create(); _sessionChanges = new Subject <SessionData>(); _subscriptions.Add(_sessionChanges); _chatsRepository = chatsRepository; _botClientFactory = botClientFactory; _messageFactory = messageFactory; this._messageSender = messageSender; }