Natty Precise Maverick

    simple-telegram-api
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    simple-telegram-api

    Telegram Bot API for NodeJS

    Getting started

    1. Install via npm

    npm i simple-telegram-api
    

    2. Example usage

    // TypeScript
    import TelegramBot from 'simple-telegram-api';
     
    const token = '<YOUR_TOKEN>';
    const t = new TelegramBot(token);
    t.getUpdates().then(resp => console.log(JSON.stringify(resp,null,'\t')))
     
    const chat_id = 0;
    const message = 'test message';
    t.sendMessage(chat_id, message);

    Keywords

    Install

    npm i simple-telegram-api

    DownloadsWeekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    14.3 kB

    Total Files

    13

    Last publish

    Collaborators

    • szombatipeter