telegram: shut down sidecar bot after export #109
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-telegram-sidecar-teardown"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The sidecar bot (python-telegram-bot
Application) was started as a daemon thread runninggetUpdatespolling underloop.run_forever()and was never stopped. In the long-lived Qt GUI process the poller outlived the export task, so a later export (or a lingering prior process) started a second poller on the same token and hittelegram.error.Conflict: terminated by other getUpdates request.Make
TelegramSidecarBotstoppable (stop()schedulesloop.stop();run()tears the updater/application down on its own loop), haverun_bot_in_threadreturn the bot instance, and addTelegramExporter.close()invoked from afinallyaroundexport()so the poller is released on success or failure.🤖 Generated with Claude Code
added 1 commit
7f695540- Release chgksuite v1.3.0b4Compare with previous version
mentioned in commit
bf4596bcec