mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Bot apps implementation
This commit is contained in:
@@ -208,12 +208,25 @@ public struct ChatControllerInitialAttachBotStart {
|
||||
}
|
||||
}
|
||||
|
||||
public struct ChatControllerInitialBotAppStart {
|
||||
public let botApp: BotApp
|
||||
public let payload: String?
|
||||
public let justInstalled: Bool
|
||||
|
||||
public init(botApp: BotApp, payload: String?, justInstalled: Bool) {
|
||||
self.botApp = botApp
|
||||
self.payload = payload
|
||||
self.justInstalled = justInstalled
|
||||
}
|
||||
}
|
||||
|
||||
public enum ChatControllerInteractionNavigateToPeer {
|
||||
case `default`
|
||||
case chat(textInputState: ChatTextInputState?, subject: ChatControllerSubject?, peekData: ChatPeekTimeout?)
|
||||
case info
|
||||
case withBotStartPayload(ChatControllerInitialBotStart)
|
||||
case withAttachBot(ChatControllerInitialAttachBotStart)
|
||||
case withBotApp(ChatControllerInitialBotAppStart)
|
||||
}
|
||||
|
||||
public struct ChatInterfaceForwardOptionsState: Codable, Equatable {
|
||||
|
||||
Reference in New Issue
Block a user