Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tgAnswer(cid, text, alert = false, cache = 0, url = '') {
- let outjsn = {
- callback_query_id: cid,
- text: text,
- show_alert: alert,
- url: url,
- cache_time: cache
- }
- axios.post(grb_api + 'answerCallbackQuery', outjsn)
- .then(function (res) {
- //log.info(res.data);
- })
- .catch((err) => {
- log.error('tgAnswer. Description = ' + err + '' + '\r\n\Sent = ' + err.config.data + '\r\n\Recd = ' + JSON.stringify(err.response.data));
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement