mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
improvement: use more nix library functions
This commit is contained in:
@@ -12,8 +12,7 @@ let
|
||||
${pkgs.curl}/bin/curl -s -X POST "https://api.telegram.org/bot${bot.token}/sendMessage" \
|
||||
-d chat_id="${chatId}" \
|
||||
-d text="$QUOTE" ${
|
||||
if bot.parseMode == null then ""
|
||||
else "-d parse_mode=${bot.parseMode}"
|
||||
lib.strings.optionalString (bot.parseMode != null) "-d parse_mode=${bot.parseMode}"
|
||||
}
|
||||
'') bot.chatIds);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user