ShousenZHANG opened a new pull request, #73263: URL: https://github.com/apache/airflow/pull/73263
`TelegramOperator` and `TelegramFileOperator` do not list `telegram_conn_id` in `template_fields`, so a Jinja expression passed as the connection id reaches `TelegramHook` unrendered. This PR updates the Telegram provider and: - Adds `telegram_conn_id` to `template_fields` for `TelegramOperator` - Adds `telegram_conn_id` to `template_fields` for `TelegramFileOperator` - Marks `telegram_conn_id` as templated in both docstrings - Adds a rendering test for `telegram_conn_id` in both classes Both operators read `self.telegram_conn_id` inside `execute()` (and store it in `__init__`), so the rendered value is what `TelegramHook` receives. The `template_fields` declarations are plain literal tuples with no helper building them, so nothing already unions the connection id in — unlike the Amazon case in #70638, where `aws_template_fields()` made the same change a no-op. The two existing `test_should_return_template_fields` cases assert the whole tuple, so they move with it. related: #35259 --- ##### Was generative AI tooling used to co-author this PR? - [x] Yes (please specify the tool below) Generated-by: Claude Code following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
