Skip to content

Commit 5fb3326

Browse files
committed
Add correct order for log and message sending
1 parent 193bc2d commit 5fb3326

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='telegram-task-bot',
5-
version='0.0.12',
5+
version='0.0.13',
66
license='BSD-3',
77
description='rpi-radio-alarm library',
88
long_description=open('README.md').read(),

telegramtaskbot/Tasks/UrlTask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def get_actual_value_cmd(self, update: telegram.Update, context: telegram.ext.Ca
3333
def handle_get_actual_value(self, context: telegram.ext.CallbackContext, chat_id: str):
3434
self.logger.debug(f'Get actual value from {self.job_name} for {chat_id}')
3535
data: str = self.get_data()
36-
context.bot.send_message(chat_id=chat_id, text=data)
3736
self.logger.debug(f'Send message to {chat_id} with content: \"{" ".join(data.splitlines())}\"')
37+
context.bot.send_message(chat_id=chat_id, text=data)
3838

3939
def get_data(self):
4040
return self.handle_response(self.get_response())

0 commit comments

Comments
 (0)