- reaction count limit API

- my profile stories improvements
- recommended channels
This commit is contained in:
Isaac
2024-04-05 22:51:46 +04:00
parent 3689a8a07d
commit fa0929ef95
41 changed files with 2139 additions and 678 deletions

View File

@@ -1038,8 +1038,8 @@ public extension TelegramEngine {
return _internal_updatePeerSendAsPeer(account: self.account, peerId: peerId, sendAs: sendAs)
}
public func updatePeerAllowedReactions(peerId: PeerId, allowedReactions: PeerAllowedReactions) -> Signal<Never, UpdatePeerAllowedReactionsError> {
return _internal_updatePeerAllowedReactions(account: account, peerId: peerId, allowedReactions: allowedReactions)
public func updatePeerReactionSettings(peerId: PeerId, reactionSettings: PeerReactionSettings) -> Signal<Never, UpdatePeerAllowedReactionsError> {
return _internal_updatePeerReactionSettings(account: account, peerId: peerId, reactionSettings: reactionSettings)
}
public func notificationSoundList() -> Signal<NotificationSoundList?, NoError> {
@@ -1369,7 +1369,7 @@ public extension TelegramEngine {
return _internal_applyChannelBoost(account: self.account, peerId: peerId, slots: slots)
}
public func recommendedChannels(peerId: EnginePeer.Id) -> Signal<RecommendedChannels?, NoError> {
public func recommendedChannels(peerId: EnginePeer.Id?) -> Signal<RecommendedChannels?, NoError> {
return _internal_recommendedChannels(account: self.account, peerId: peerId)
}
@@ -1381,6 +1381,10 @@ public extension TelegramEngine {
return _internal_requestRecommendedChannels(account: self.account, peerId: peerId, forceUpdate: forceUpdate)
}
public func requestGlobalRecommendedChannelsIfNeeded() -> Signal<Never, NoError> {
return _internal_requestRecommendedChannels(account: self.account, peerId: nil, forceUpdate: false)
}
public func isPremiumRequiredToContact(_ peerIds: [EnginePeer.Id]) -> Signal<[EnginePeer.Id], NoError> {
return _internal_updateIsPremiumRequiredToContact(account: self.account, peerIds: peerIds)
}