Port poe messaging to JS

This commit is contained in:
SillyLossy
2023-04-03 22:10:58 +03:00
parent 03691d08e2
commit e3419403a6
34 changed files with 1222 additions and 2 deletions

View File

@@ -0,0 +1,43 @@
subscription viewerStateUpdated {
viewerStateUpdated {
id
...ChatPageBotSwitcher_viewer
}
}
fragment BotHeader_bot on Bot {
displayName
messageLimit {
dailyLimit
}
...BotImage_bot
}
fragment BotImage_bot on Bot {
image {
__typename
... on LocalBotImage {
localName
}
... on UrlBotImage {
url
}
}
displayName
}
fragment BotLink_bot on Bot {
displayName
}
fragment ChatPageBotSwitcher_viewer on Viewer {
availableBots {
id
messageLimit {
dailyLimit
}
...BotLink_bot
...BotHeader_bot
}
allowUserCreatedBots: booleanGate(gateName: "enable_user_created_bots")
}