|
|
|
@ -35,9 +35,11 @@ def process_command_start(message, command, adm)
|
|
|
|
|
if message_from_admin?(message, adm)
|
|
|
|
|
msg_from_admin = true
|
|
|
|
|
end
|
|
|
|
|
STDOUT.flush
|
|
|
|
|
if is_chat_authorized?(message, @auth_chat)
|
|
|
|
|
chat_authorized = true
|
|
|
|
|
end
|
|
|
|
|
STDOUT.flush
|
|
|
|
|
if ! msg_from_admin && ! chat_authorized
|
|
|
|
|
if message.from.id == message.chat.id
|
|
|
|
|
reply = reply + "\n\nWARNING: I am not authorized to work with you directly. My functionality is limited."
|
|
|
|
@ -82,6 +84,7 @@ def process_command_check(message, command, adm, simple=false)
|
|
|
|
|
puts " Option: #{k} is #{v["loc"].to_s}"
|
|
|
|
|
button_text = v["loc"].to_s
|
|
|
|
|
options.insert(-1, Telegram::Bot::Types::InlineKeyboardButton.new(text: button_text, callback_data: "ZONE|#{k}"))
|
|
|
|
|
STDOUT.flush
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
message_text = "Which area would you like to check?\n"
|
|
|
|
|