From e6d1f7b07e516a78103513930b3b04b79ae23297 Mon Sep 17 00:00:00 2001 From: evilkeeper Date: Wed, 25 Dec 2024 00:00:50 +0500 Subject: [PATCH] Upgrade boshurik/telegram-bot-bundle recipe for v6.0 --- .../6.0/config/packages/boshurik_telegram_bot.yaml | 3 +++ .../6.0/config/routes/boshurik_telegram_bot.yaml | 3 +++ boshurik/telegram-bot-bundle/6.0/manifest.json | 14 ++++++++++++++ boshurik/telegram-bot-bundle/6.0/post-install.txt | 2 ++ 4 files changed, 22 insertions(+) create mode 100644 boshurik/telegram-bot-bundle/6.0/config/packages/boshurik_telegram_bot.yaml create mode 100644 boshurik/telegram-bot-bundle/6.0/config/routes/boshurik_telegram_bot.yaml create mode 100644 boshurik/telegram-bot-bundle/6.0/manifest.json create mode 100644 boshurik/telegram-bot-bundle/6.0/post-install.txt diff --git a/boshurik/telegram-bot-bundle/6.0/config/packages/boshurik_telegram_bot.yaml b/boshurik/telegram-bot-bundle/6.0/config/packages/boshurik_telegram_bot.yaml new file mode 100644 index 000000000..81f53c185 --- /dev/null +++ b/boshurik/telegram-bot-bundle/6.0/config/packages/boshurik_telegram_bot.yaml @@ -0,0 +1,3 @@ +boshurik_telegram_bot: + api: + token: "%env(TELEGRAM_BOT_TOKEN)%" diff --git a/boshurik/telegram-bot-bundle/6.0/config/routes/boshurik_telegram_bot.yaml b/boshurik/telegram-bot-bundle/6.0/config/routes/boshurik_telegram_bot.yaml new file mode 100644 index 000000000..7762e659a --- /dev/null +++ b/boshurik/telegram-bot-bundle/6.0/config/routes/boshurik_telegram_bot.yaml @@ -0,0 +1,3 @@ +boshurik_telegram_bot_routing: + resource: "@BoShurikTelegramBotBundle/Resources/config/routing.php" + prefix: "/_telegram/%telegram_route_secret%" diff --git a/boshurik/telegram-bot-bundle/6.0/manifest.json b/boshurik/telegram-bot-bundle/6.0/manifest.json new file mode 100644 index 000000000..eb3c11fa8 --- /dev/null +++ b/boshurik/telegram-bot-bundle/6.0/manifest.json @@ -0,0 +1,14 @@ +{ + "bundles": { + "BoShurik\\TelegramBotBundle\\BoShurikTelegramBotBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "TELEGRAM_BOT_TOKEN": "bot-token" + }, + "container": { + "telegram_route_secret": "%env(TELEGRAM_BOT_TOKEN)%" + } +} diff --git a/boshurik/telegram-bot-bundle/6.0/post-install.txt b/boshurik/telegram-bot-bundle/6.0/post-install.txt new file mode 100644 index 000000000..7e25fc84b --- /dev/null +++ b/boshurik/telegram-bot-bundle/6.0/post-install.txt @@ -0,0 +1,2 @@ + * Set TELEGRAM_BOT_TOKEN in your environment + * Read the documentation at https://github.com/BoShurik/TelegramBotBundle