setmycommands languages and scope
This commit is contained in:
parent
4dec8003ed
commit
5e6f1b9ec7
1 changed files with 6 additions and 2 deletions
8
api.lua
8
api.lua
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue