Skip to content

Commit

Permalink
Bugfix for Warnings about telegram, although telegram is not enabled #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Der-Henning committed Jan 13, 2024
1 parent 8d76369 commit 94f61dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name = "tgtg-scanner"
packages = [{include = "tgtg_scanner"}]
readme = "README.md"
repository = "https://github.com/Der-Henning/tgtg"
version = "1.18.0"
version = "1.18.1"

[tool.poetry.dependencies]
apprise = "^1.4.0"
Expand Down
2 changes: 1 addition & 1 deletion tgtg_scanner/notifiers/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async def _stop_polling(self):
await self.application.shutdown()

def start(self) -> None:
if not self.chat_ids:
if self.enabled and not self.chat_ids:
asyncio.run(self._get_chat_ids())
super().start()

Expand Down

0 comments on commit 94f61dd

Please sign in to comment.