Skip to content

Telegram plugin and template key not valid #1569

@matejzero

Description

@matejzero

Expected behaviour:

I expect template key to work when I set the template (it worked 1 day ago and nothing changed)

Actual behaviour:

Flexget gives me the following error:
2016-12-16 23:42 CRITICAL manager [/templates/telegram_bot/telegram] The key template is not valid here.
2016-12-16 23:42 CRITICAL manager Failed to load config file: Did not pass schema validation.

Steps to reproduce:

Copy my config and run flexget execute

Config:

  telegram_bot:
    telegram:
      bot_token: 123456:botid
      template: |
        {{task}} - Download started:
        {% if series_name is defined %}
        {{tvdb_series_name|d(series_name)}} {{series_id}} {{tvdb_ep_name|d('')}}
        {% elif imdb_name is defined %}
        {{imdb_name}} {{imdb_year}}
        {% else %}
        {{title}}
        {% endif %}
      recipients:
        - username: your-username

Log:

2016-12-16 23:42 CRITICAL manager                       [/templates/telegram_bot/telegram] The key `template` is not valid here.
2016-12-16 23:42 CRITICAL manager                       Failed to load config file: Did not pass schema validation.

Additional information:

  • Python telegram bot: 4.3.1 ( I also tried with latest version)
  • Flexget Version: FlexGet (2.8.4)
  • Python Version: 2.7.12+
  • Installation method: I installed flexget and python-telegram-bot with pip
  • OS and version: Ubuntu latest
  • Link to crash log:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions