<commit_before>import dotenv from 'dotenv';
import pr from 'request-promise';
import promise from 'q';
import { ACTIONS } from './actions';

dotenv.config();

class TelegramBotApi {
    constructor(token) {
        this.token = token;
    }

    getActionUrl(action) {
        return `https://api.telegram.org/bot${this.token}/${action}`;
    }

    sendMessage(qs) {
        console.log(qs);
        console.log(this.getActionUrl(ACTIONS.SEND_MESSAGE));

        return pr.get({
            qs,
            uri: this.getActionUrl(ACTIONS.SEND_MESSAGE),
            json: true
        });
    }

    getMe() {
        return pr.get({
            uri: this.getActionUrl(ACTIONS.GET_ME),
            qs: {
                offset: this.offset
            },
            json: true
        });
    }

}

const token = process.env.BOT_TOKEN;
export const telegramBotApi = new TelegramBotApi(token);<commit_msg>remove(qs) from getMe<commit_after>import dotenv from 'dotenv';
import pr from 'request-promise';
import promise from 'q';
import { ACTIONS } from './actions';

dotenv.config();

class TelegramBotApi {
    constructor(token) {
        this.token = token;
    }

    getActionUrl(action) {
        return `https://api.telegram.org/bot${this.token}/${action}`;
    }

    sendMessage(qs) {
        console.log(qs);
        console.log(this.getActionUrl(ACTIONS.SEND_MESSAGE));

        return pr.get({
            qs,
            uri: this.getActionUrl(ACTIONS.SEND_MESSAGE),
            json: true
        });
    }

    getMe() {
        return pr.get({
            uri: this.getActionUrl(ACTIONS.GET_ME),
            json: true
        });
    }

}

const token = process.env.BOT_TOKEN;
export const telegramBotApi = new TelegramBotApi(token);
{'fraction_non_alphanumeric': 0.1292166952544311, 'fraction_numerical': 0.0, 'mean_word_length': 2.141831238779174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '857044', 'n_tokens_mistral': 556, 'n_tokens_neox': 547, 'n_words': 104}