1.0.3 • Published 4 years ago

@darkwolf/dwbots-admin v1.0.3

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

Darkwolf Bots Admin

Install

npm i --save @darkwolf/dwbots-admin

Usage

const DarkwolfBotsAdmin = require('@darkwolf/dwbots-admin')
const dwbots = new DarkwolfBotsAdmin(token)

Init

new DarkwolfBotsAdmin(token)

Methods

getUser(userId)

getUsers(optionsorderBy, limit, before, after, first, last?)

getApp(appId)

getApps(optionsorderBy, limit, before, after, first, last?)

getUserApps(userId, optionsorderBy, limit, before, after, first, last?)

getBot(botId)

getBots(optionsorderBy, limit, before, after, first, last?)

getTelegramBots(optionsorderBy, limit, before, after, first, last?)

getUserBots(userId, optionsorderBy, limit, before, after, first, last?)

getUserTelegramBots(userId, optionsorderBy, limit, before, after, first, last?)

getAppBots(appId, optionsorderBy, limit, before, after, first, last?)

getAppTelegramBots(appId, optionsorderBy, limit, before, after, first, last?)

getBotUser(botId, userId)

getBotUsers(botId, optionsorderBy, limit, before, after, first, last?)

getBotAdmins(botId, optionsorderBy, limit, before, after, first, last?)

getBotBannedUsers(botId, optionsorderBy, limit, before, after, first, last?)

getBotsUser(userId)

getBotsUsers(optionsorderBy, limit, before, after, first, last?)

getTelegramBotsUsers(optionsorderBy, limit, before, after, first, last?)

getAppUser(appId, userId)

getAppUsers(appId, optionsorderBy, limit, before, after, first, last?)

getAppTelegramUsers(appId, optionsorderBy, limit, before, after, first, last?)

createUser(userId, optionsadmin?)

createUserApp(userId, name, optionspayload?)

setUserAdmin(userId)

unsetUserAdmin(userId)

deleteApp(appId)

Types

User

App

Webhook

TelegramBot

Bot

TelegramUser

BotUser

BotsUser

AppUser

PageInfo

UserEdge

UserConnection

AppEdge

AppConnection

BotEdge

BotConnection

BotUserEdge

BotUserConnection

BotsUserEdge

BotsUserConnection

AppUserEdge

AppUserConnection

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago