@@ -333,6 +333,11 @@ public final class AccountStateManager {
333333 return self . sentScheduledMessageIdsPipe. signal ( )
334334 }
335335
336+ fileprivate let starRefBotConnectionEventsPipe = ValuePipe < StarRefBotConnectionEvent > ( )
337+ public var starRefBotConnectionEvents : Signal < StarRefBotConnectionEvent , NoError > {
338+ return self . starRefBotConnectionEventsPipe. signal ( )
339+ }
340+
336341 private var updatedWebpageContexts : [ MediaId : UpdatedWebpageSubscriberContext ] = [ : ]
337342 private var updatedPeersNearbyContext = UpdatedPeersNearbySubscriberContext ( )
338343 private var updatedRevenueBalancesContext = UpdatedRevenueBalancesSubscriberContext ( )
@@ -1804,6 +1809,10 @@ public final class AccountStateManager {
18041809 self . removePossiblyDeliveredMessagesUniqueIds. merge ( uniqueIds, uniquingKeysWith: { _, rhs in rhs } )
18051810 }
18061811 }
1812+
1813+ func addStarRefBotConnectionEvent( event: StarRefBotConnectionEvent ) {
1814+ self . starRefBotConnectionEventsPipe. putNext ( event)
1815+ }
18071816 }
18081817
18091818 private let impl : QueueLocalObject < Impl >
@@ -2183,6 +2192,18 @@ public final class AccountStateManager {
21832192 public func synchronouslyIsMessageDeletedRemotely( ids: [ EngineMessage . Id ] ) -> [ EngineMessage . Id ] {
21842193 return self . messagesRemovedContext. synchronouslyIsMessageDeletedRemotely ( ids: ids)
21852194 }
2195+
2196+ func starRefBotConnectionEvents( ) -> Signal < StarRefBotConnectionEvent , NoError > {
2197+ return self . impl. signalWith { impl, subscriber in
2198+ return impl. starRefBotConnectionEventsPipe. signal ( ) . start ( next: subscriber. putNext)
2199+ }
2200+ }
2201+
2202+ func addStarRefBotConnectionEvent( event: StarRefBotConnectionEvent ) {
2203+ self . impl. with { impl in
2204+ impl. addStarRefBotConnectionEvent ( event: event)
2205+ }
2206+ }
21862207}
21872208
21882209func resolveNotificationSettings( list: [ TelegramPeerNotificationSettings ] , defaultSettings: MessageNotificationSettings ) -> ( sound: PeerMessageSound , notify: Bool , displayContents: Bool ) {
0 commit comments