Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "main"

Index

Functions

Object literals

Functions

bot

  • bot(options: object): object
  • Creates all the necessary objects for the bot and the Bot object itself.

    example
    var params = {
       vkToken: 'your_vk_access_token',
       confirmationToken: 'f123456',
       groupId: 1234567,
       secret: 's3r10us1y_s3cr3t_phr4s3',
       port: 12345,
    
       cmdPrefix: '/'
     };
    
    var {bot, core} = vk.bot(params);

    Parameters

    • options: object
      • cmdPrefix: string
      • confirmationToken: string
      • groupId: string | number
      • port: string | number
      • secret: string
      • vkToken: string

    Returns object

Object literals

Const vk

vk: object

The exported object. Use it to get what you need.

API

API: API

Bot

Bot: Bot

Context

Context: Context

Core

Core: Core

Stats

Stats: Stats

bot

bot: bot

kbd

log

Generated using TypeDoc