1.0.0 • Published 4 years ago

@darkwolf/bots-telegram-bot v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

Darkwolf Bots Telegram Bot API

Install

npm i --save @darkwolf/bots-telegram-bot

Usage

const DarkwolfBotsTelegramBot = require('@darkwolf/bots-telegram-bot')
const dwbot = new DarkwolfBotsTelegramBot(token)
const botInfo = await dwbot.request(`
  query {
    me {
      id
      type
      ownerId
      appId
      name
      userCount
      adminCount
      bannedUserCount
      disabled
      updatedAt
      createdAt
    }
  }
`)

Init

new DarkwolfBotsTelegramBot(token, optionsagent?)

Methods

request(query, variables, optionsagent?)

1.0.0

4 years ago