setmycommands languages and scope

This commit is contained in:
Er2 2022-01-23 21:42:53 +03:00
parent 4dec8003ed
commit 5e6f1b9ec7

View file

@ -130,8 +130,12 @@ function api:answerCallback(id, txt, alrt, url, ctime)
})
end
function api:setMyCommands(cmds)
return self:request('setMyCommands', { commands = json.encode(cmds) })
function api:setMyCommands(cmds, lang, scope)
return self:request('setMyCommands', {
commands = json.encode(cmds),
language_code = tostring(lang),
scope = scope,
})
end
return api