setmycommands languages and scope

This commit is contained in:
Er2 2022-01-23 21:42:53 +03:00
parent 4dec8003ed
commit 5e6f1b9ec7
1 changed files with 6 additions and 2 deletions

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