Update colors API

This commit is contained in:
Isaac
2023-11-22 19:02:11 +04:00
parent 08bf729d29
commit f5b039e556
10 changed files with 569 additions and 21 deletions

View File

@@ -35,6 +35,10 @@ public extension TelegramEngine {
return _internal_updateAbout(account: self.account, about: about)
}
public func observeAvailableColorOptions(scope: PeerColorsScope) -> Signal<EngineAvailableColorOptions, NoError> {
return _internal_observeAvailableColorOptions(postbox: self.account.postbox, scope: scope)
}
public func updateNameColorAndEmoji(nameColor: PeerNameColor, backgroundEmojiId: Int64?, profileColor: PeerNameColor?, profileBackgroundEmojiId: Int64?) -> Signal<Void, UpdateNameColorAndEmojiError> {
return _internal_updateNameColorAndEmoji(account: self.account, nameColor: nameColor, backgroundEmojiId: backgroundEmojiId, profileColor: profileColor, profileBackgroundEmojiId: profileBackgroundEmojiId)
}