Update API

This commit is contained in:
Ilya Laktyushin
2025-03-17 21:10:07 +04:00
parent 7e4195a6eb
commit 4291cd6279
22 changed files with 1138 additions and 638 deletions

View File

@@ -246,11 +246,11 @@ func _internal_fetchAndUpdateCachedPeerData(accountPeerId: PeerId, peerId rawPee
if let apiBot = connectedBots.first {
switch apiBot {
case let .connectedBot(flags, botId, recipients, _):
case let .connectedBot(_, botId, recipients, rights):
mappedConnectedBot = TelegramAccountConnectedBot(
id: PeerId(namespace: Namespaces.Peer.CloudUser, id: PeerId.Id._internalFromInt64Value(botId)),
recipients: TelegramBusinessRecipients(apiValue: recipients),
canReply: (flags & (1 << 0)) != 0
rights: TelegramBusinessBotRights(apiValue: rights)
)
}
}