controllers

package
v0.0.0-...-6e4ec00 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OnJoinAChatEvent         chan *tgApi.Message
	OnReceiveAnimationEvent  chan *tgApi.Message
	PMOnlyEvent              chan *tgApi.Message
	OnStartEvent             chan *tgApi.Message
	GroupHasAGameEvent       chan *tgApi.Message
	GroupOnlyEvent           chan *tgApi.Message
	HelpEvent                chan *tgApi.Message
	AboutEvent               chan *tgApi.Message
	AdminModeOffEvent        chan *tgApi.Message
	AdminModeOnEvent         chan *tgApi.Message
	AdminBadPasswordEvent    chan *tgApi.Message
	SetLangMsgEvent          chan *tgApi.Message
	NextGameEvent            chan *tgApi.Message
	RegisterNeededEvent      chan *tgApi.Message
	LanguageChangedEvent     chan *tgApi.CallbackQuery
	DeleteMessageEvent       chan tgApi.DeleteMessageConfig
	RemoveMessageMarkUpEvent chan tgApi.EditMessageReplyMarkupConfig
	EditMessageTextEvent     chan tgApi.EditMessageTextConfig
	NoGameEvent              chan *tgApi.Message
	OperationApprovedEvent   chan *tgApi.CallbackQuery
)

List of message event

View Source
var CommandList map[string]eventFunc

CommandList is

View Source
var InlineQueryList map[string]inlineQueryFunc

InlineQueryList is

Functions

func AddGameQueue

func AddGameQueue(ID int64, element models.QueueElement) error

AddGameQueue is

func ClearGameQueue

func ClearGameQueue(ID int64) error

ClearGameQueue is

func DelGameQueue

func DelGameQueue(ID int64, element models.QueueElement) error

DelGameQueue is

func GetGameQueue

func GetGameQueue(ID int64) ([]models.QueueElement, error)

GetGameQueue is

func OnJoinAChat

func OnJoinAChat(msg *tgApi.Message) error

OnJoinAChat is

func OnKickoutAChat

func OnKickoutAChat(msg *tgApi.Message) error

OnKickoutAChat is

func OnReceiveAnimation

func OnReceiveAnimation(msg *tgApi.Message) error

OnReceiveAnimation is

func UpdateGameQueue

func UpdateGameQueue(ID int64, gameQueue []models.QueueElement) error

UpdateGameQueue is

Types

This section is empty.

Jump to

Keyboard shortcuts

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