Upgrade python-telegram-bot to 6.0.1#7704
Conversation
There was a problem hiding this comment.
Could I propose a minimal correction when rendering template attributes:
in the _render_template_attr at line 221:
if attribute_templ:
if not isinstance(attribute_templ, str):
attribute_templ.hass = hass
data[attribute] = attribute_templ.async_render()
else:
data[attribute] = attribute_templWhen messages come from the notify.telegram platform, they come rendered, so it's failing here with an AttributeError.
This change fixes #7705
|
Also, when testing the changes with the On the other hand, I have not encountered any more problems with the new version. With some time I will try to explore the new features of the API. |
|
Your proposed changes for the template rendering are included in #7709. I don't use webhooks but timeouts are always good to avoid open connections which are waiting for the server. |
6.0.1
User.language_codeMessage.text_htmlandMessage.text_markdownfor messages with emoji6.0.0
deleteMessageAPI methodJobQueue- JobQueue: Simpler API for adding jobs python-telegram-bot/python-telegram-bot#484urllib3to address issues with timeoutsNoneby default, instead of empty stringstext_markdownandtext_htmlproperties toMessage- Added methods to generate the original markdown/html string from entities contained in Message python-telegram-bot/python-telegram-bot#507CommandHandler- Add filters to commandHandler python-telegram-bot/python-telegram-bot#536Filters.groupandFilters.privateurllib3.contribpackage - Compatibility with GAE via urllib3.contrib package python-telegram-bot/python-telegram-bot#583Tested with the following configuration:
Message sent with "Call Service"
{"message": "The sun is {% if is_state('sun.sun', 'above_horizon') %}up{% else %}down{% endif %}!"}