chatbot fixes

This commit is contained in:
Mikhail Filimonov
2024-03-30 22:11:27 +04:00
parent 977ecf458e
commit 6ceba731ac
2 changed files with 3 additions and 1 deletions

View File

@@ -236,7 +236,7 @@ func _internal_fetchAndUpdateCachedPeerData(accountPeerId: PeerId, peerId rawPee
switch apiBot {
case let .connectedBot(flags, botId, recipients):
mappedConnectedBot = TelegramAccountConnectedBot(
id: PeerId(botId),
id: PeerId(namespace: Namespaces.Peer.CloudUser, id: PeerId.Id._internalFromInt64Value(botId)),
recipients: TelegramBusinessRecipients(apiValue: recipients),
canReply: (flags & (1 << 0)) != 0
)