diff --git a/bot/conf/lib_global.py b/bot/conf/lib_global.py index 4713dc1..22a651c 100644 --- a/bot/conf/lib_global.py +++ b/bot/conf/lib_global.py @@ -14,7 +14,7 @@ """ timeout if no user activity """ -timeout = 60 +timeout = 120 """ language settings diff --git a/bot/greenhouse.py b/bot/greenhouse.py index 93886cf..e821521 100644 --- a/bot/greenhouse.py +++ b/bot/greenhouse.py @@ -437,7 +437,8 @@ def __group_menu(bot, update): __get_btn(lib.group1[3], conf.RELAIS_03), __get_btn(lib.group3[1], conf.RELAIS_04)], [__get_btn(lib.group3[2], conf.RELAIS_05), __get_btn(lib.group2[1], conf.RELAIS_06), __get_btn(lib.group2[2], conf.RELAIS_07), __get_btn(lib.group2[3], conf.RELAIS_08)], - [__get_btn(lib.btn_finished, lib.btn_finished), __get_btn(lib.btn_cancel, lib.btn_cancel)] + [InlineKeyboardButton(lib.btn_finished, callback_data=lib.btn_finished), + InlineKeyboardButton(lib.btn_cancel, callback_data=lib.btn_cancel)] ] global reply_markup @@ -447,7 +448,7 @@ def __group_menu(bot, update): def __get_btn(text, callback): - return InlineKeyboardButton('{0}({1})'.format(text, callback), callback_data=callback) + return InlineKeyboardButton('{0} ({1})'.format(text, callback), callback_data=callback) # end: grouping