From e8fd43d9781d74575a9d6a84f26c8e002d34e12d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 25 Aug 2024 13:07:40 +0200 Subject: [PATCH] Add unimplemented optional config key `TELEGRAM_MATCHMAKING_CHATID` --- .example.env | 1 + src/instance/config.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.example.env b/.example.env index 3a17b5ba..ea94254b 100644 --- a/.example.env +++ b/.example.env @@ -4,6 +4,7 @@ export DATABASE_URL='postgres:///royalnet?host=/run/postgresql/' export TELEGRAM_DATABASE_URL='postgres:///royalnet?host=/run/postgresql/' export TELEGRAM_BOT_TOKEN='1234567890:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' export TELEGRAM_NOTIFICATION_CHATID='-1001899805480' +export TELEGRAM_MATCHMAKING_CHATID='-1002199277242' export BROOCH_DATABASE_URL='postgres:///royalnet?host=/run/postgresql/' export BROOCH_GRAPHQL_URL='https://api.stratz.com/graphql' diff --git a/src/instance/config.rs b/src/instance/config.rs index 9770ea47..27001afb 100644 --- a/src/instance/config.rs +++ b/src/instance/config.rs @@ -19,6 +19,8 @@ pub mod service_telegram { TELEGRAM_DATABASE_URL: String, TELEGRAM_BOT_TOKEN: String, TELEGRAM_NOTIFICATION_CHATID?: String > i64 -> crate::instance::config::ChatIdConversionHack -> teloxide::types::ChatId, + // TODO: Unimplemented + TELEGRAM_MATCHMAKING_CHATID?: String > i64 -> crate::instance::config::ChatIdConversionHack -> teloxide::types::ChatId, } }