Bot app improvements

This commit is contained in:
Ilya Laktyushin
2023-04-09 04:50:07 +04:00
parent 4fec750fca
commit 8d7566afec
4 changed files with 54 additions and 32 deletions

View File

@@ -629,7 +629,7 @@ public final class WebAppController: ViewController, AttachmentContainable {
case "web_app_ready":
self.animateTransitionIn()
case "web_app_switch_inline_query":
if controller.isInline, let json, let query = json["query"] as? String {
if let json, let query = json["query"] as? String {
if let chatTypes = json["chat_types"] as? [String], !chatTypes.isEmpty {
var requestPeerTypes: [ReplyMarkupButtonRequestPeerType] = []
for type in chatTypes {