mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +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()
|
controller.presentThemeSelection()
|
||||||
}
|
}
|
||||||
if let botStart = params.botStart {
|
if let botStart = params.botStart {
|
||||||
controller.updateChatPresentationInterfaceState(interactive: false, { state -> ChatPresentationInterfaceState in
|
controller.startBot(botStart.payload)
|
||||||
return state.updatedBotStartPayload(botStart.payload)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
if let attachBotStart = params.attachBotStart {
|
if let attachBotStart = params.attachBotStart {
|
||||||
controller.presentAttachmentBot(botId: attachBotStart.botId, payload: attachBotStart.payload, justInstalled: attachBotStart.justInstalled)
|
controller.presentAttachmentBot(botId: attachBotStart.botId, payload: attachBotStart.payload, justInstalled: attachBotStart.justInstalled)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user