Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pitte
bits-companion
Commits
a1ca1739
Verified
Commit
a1ca1739
authored
Oct 25, 2021
by
Mroik
Browse files
Small fixes
parent
eba32d5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tgbot/handlers.py
View file @
a1ca1739
...
...
@@ -65,5 +65,7 @@ def set_status(status: bool, update: Update, context: CallbackContext):
LOGGER
.
debug
(
"Not an admin"
)
raise
DispatcherHandlerStop
resp
=
mt
.
bot
.
mqtt
.
publish
(
"sede/status"
,
payload
=
json
.
dumps
({
"id"
:
"Set from telegram"
,
"status"
:
OPEN
if
status
else
CLOSED
}))
resp
=
mt
.
bot
.
mqtt
.
publish
(
"sede/status"
,
payload
=
json
.
dumps
(
{
"id"
:
"Set from telegram"
,
"status"
:
OPEN
if
status
else
CLOSED
}
))
LOGGER
.
info
(
resp
.
mid
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment