Skip to content

Commit

Permalink
v1.5.5
Browse files Browse the repository at this point in the history
version 1.5.5
  • Loading branch information
thusser authored Sep 20, 2023
2 parents 8e2fa96 + 9dbebd5 commit 6e79c62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions pyobs/modules/utils/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def open(self) -> None:
self._loop = asyncio.get_running_loop()

# get dispatcher
self._application = Application.builder().token("TOKEN").build()
self._application = Application.builder().token(self._token).build()

# add command handler
self._application.add_handler(CommandHandler("start", self._command_start))
Expand All @@ -87,7 +87,9 @@ async def open(self) -> None:
self._application.bot_data["storage"] = {}

# start polling
self._application.start_polling(poll_interval=0.1)
await self._application.initialize()
await self._application.updater.start_polling()
await self._application.start()

# listen to log events
await self.comm.register_event(LogEvent, self._process_log_entry)
Expand All @@ -98,7 +100,9 @@ async def close(self) -> None:

# stop telegram
if self._application is not None:
await self._application.updater.stop()
await self._application.stop()
await self._application.shutdown()

async def _save_storage(self, context: CallbackContext) -> None:
"""Save storage file.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "pyobs-core"
packages = [{ include = "pyobs" }]
version = "1.5.4"
version = "1.5.5"
description = "robotic telescope software"
authors = ["Tim-Oliver Husser <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 6e79c62

Please sign in to comment.