Pass Telegram (and other) credentials through an expression

As far as I know, that is not possible. What you can do it’s to set the API key in the env variable and reference that using $env variable.