botapi

package module
v0.0.0-...-34f8a0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 5 Imported by: 0

README

botapi

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	VK BotVK
	TG BotTG
}

Bot - Объект бота

func (*Bot) ParseRequest

func (bot *Bot) ParseRequest(r *http.Request, opt *MessageOptions) (ans *types.Message, err error)

ParseRequest - Разбираем запрос

func (*Bot) SendMessage

func (bot *Bot) SendMessage(req *types.Message, ans *types.Message) (err error)

SendMessage - Отправляем сообщение

type BotTG

type BotTG struct {
	Token string
}

BotTG - Настройки tg

type BotVK

type BotVK struct {
	Secret string
	Token  string
}

BotVK - Настройки ВК

type MessageOptions

type MessageOptions struct {
	Source string
}

MessageOptions - Настройки сообщения

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL