mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Add bot commands menu
This commit is contained in:
@@ -312,9 +312,10 @@ func inputTextPanelStateForChatPresentationInterfaceState(_ chatPresentationInte
|
||||
stickersEnabled = false
|
||||
}
|
||||
}
|
||||
if let peer = chatPresentationInterfaceState.renderedPeer?.peer as? TelegramUser, let _ = peer.botInfo {
|
||||
accessoryItems.append(.commands)
|
||||
} else if chatPresentationInterfaceState.hasBots {
|
||||
// if let peer = chatPresentationInterfaceState.renderedPeer?.peer as? TelegramUser, let _ = peer.botInfo {
|
||||
// accessoryItems.append(.commands)
|
||||
// } else
|
||||
if chatPresentationInterfaceState.hasBots {
|
||||
accessoryItems.append(.commands)
|
||||
}
|
||||
accessoryItems.append(.stickers(stickersEnabled))
|
||||
|
||||
Reference in New Issue
Block a user