UNPKG

vk-chat-bot

Version:

Package for easy creation of chat bots for VK communities (uses Callback API).

26 lines (25 loc) 766 B
import API from './api'; import { Keyboard } from './keyboard'; export default class Context { readonly api: API; readonly obj: any; msg: string; readonly eventType: string; private autoSend; private pid; private replyText; private attachment; private kbdObject; constructor(api: API, eventType: string, object: object, message: string); clear(): void; noAutoSend(): void; needsAutoSend(): boolean; getPid(): string; setPid(pid: string | number): void; getOriginalPid(): string; text(txt: string): void; attach(type: string, ownerId: string | number, resId: string | number, accessKey?: string): void; keyboard(kbd: Keyboard): void; removeKeyboard(): void; send(): Promise<void>; }