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 end
function api:setMyCommands(cmds) function api:setMyCommands(cmds, lang, scope)
return self:request('setMyCommands', { commands = json.encode(cmds) }) return self:request('setMyCommands', {
commands = json.encode(cmds),
language_code = tostring(lang),
scope = scope,
})
end end
return api return api