- CallbackQuery für Creds zum Löschen der Nachricht mit den ganzen Keys

- Ändere Standard-Set für API-Keys. Puh, das war vielleicht alt!
This commit is contained in:
Andreas Bielawski
2016-10-06 01:42:20 +02:00
parent b825fad114
commit 0246874f0d
2 changed files with 6 additions and 18 deletions

View File

@@ -87,6 +87,10 @@ function creds_manager:rename_creds(var, newvar)
end
end
function creds_manager:callback(callback, msg, self, config)
utilities.delete_message(msg.chat.id, msg.message_id)
end
function creds_manager:action(msg, config, matches)
local receiver = msg.from.id
if not is_sudo(msg, config) then
@@ -100,7 +104,7 @@ function creds_manager:action(msg, config, matches)
end
if matches[1] == "/creds" then
utilities.send_reply(msg, creds_manager:list_creds())
utilities.send_reply(msg, creds_manager:list_creds(), false, '{"inline_keyboard":[[{"text":"Keys verbergen","callback_data":"creds:"}]]}')
return
elseif matches[1] == "/creds add" then
local var = string.lower(string.sub(matches[2], 1, 50))