Showing 3 of 34 total issues
File main.js
has 290 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
var fs = require('fs');
var yarl = require('yarl');
var url = 'https://api.telegram.org';
Function sendVenue
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Api.prototype.sendVenue = function (chatId, lat, lon, title, address, options) {
Consider simplifying this complex logical expression. Open
Open
if (!Array.isArray(keyboard)) {
return this.hideKeyboard(selective || resize || false);
} else {
this.keyboard = JSON.stringify({
keyboard: keyboard,