mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-08 19:10:53 +00:00
Fix external bot start when chat is opened
This commit is contained in:
parent
6d14d5aeb0
commit
3de2b437b2
@ -159,9 +159,7 @@ public func navigateToChatControllerImpl(_ params: NavigateToChatControllerParam
|
||||
controller.presentThemeSelection()
|
||||
}
|
||||
if let botStart = params.botStart {
|
||||
controller.updateChatPresentationInterfaceState(interactive: false, { state -> ChatPresentationInterfaceState in
|
||||
return state.updatedBotStartPayload(botStart.payload)
|
||||
})
|
||||
controller.startBot(botStart.payload)
|
||||
}
|
||||
if let attachBotStart = params.attachBotStart {
|
||||
controller.presentAttachmentBot(botId: attachBotStart.botId, payload: attachBotStart.payload, justInstalled: attachBotStart.justInstalled)
|
||||
|
Loading…
x
Reference in New Issue
Block a user