Reorder some things
This commit is contained in:
parent
9d95ae9341
commit
6bb2fad9b0
@ -38,6 +38,12 @@ class ApiServer(RPC):
|
|||||||
thread = threading.Thread(target=self.run, daemon=True)
|
thread = threading.Thread(target=self.run, daemon=True)
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
|
def cleanup(self) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
|
def send_msg(self, msg: Dict[str, str]) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
def register_rest_other(self):
|
def register_rest_other(self):
|
||||||
"""
|
"""
|
||||||
Registers flask app URLs that are not calls to functionality in rpc.rpc.
|
Registers flask app URLs that are not calls to functionality in rpc.rpc.
|
||||||
@ -84,12 +90,6 @@ class ApiServer(RPC):
|
|||||||
except Exception:
|
except Exception:
|
||||||
logger.exception("Api server failed to start, exception message is:")
|
logger.exception("Api server failed to start, exception message is:")
|
||||||
|
|
||||||
def cleanup(self) -> None:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def send_msg(self, msg: Dict[str, str]) -> None:
|
|
||||||
pass
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Define the application methods here, called by app.add_url_rule
|
Define the application methods here, called by app.add_url_rule
|
||||||
each Telegram command should have a like local substitute
|
each Telegram command should have a like local substitute
|
||||||
|
Loading…
Reference in New Issue
Block a user