| 4471 | } |
| 4472 | |
| 4473 | BotAppData *Session::findBotApp(PeerId botId, const QString &appName) const { |
| 4474 | for (const auto &[id, app] : _botApps) { |
| 4475 | if (app->botId == botId && app->shortName == appName) { |
| 4476 | return app.get(); |
| 4477 | } |
| 4478 | } |
| 4479 | return nullptr; |
| 4480 | } |
| 4481 | |
| 4482 | BotAppData *Session::processBotApp( |
| 4483 | PeerId botId, |