srv

package
v0.0.0-...-799dd52 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const New_sales_msg_ru = "Подоспели новые скидочки:"

Variables

View Source
var APIEndpoint string

APIEndpoint should be set in main

Functions

func FormatGamesListMessage

func FormatGamesListMessage(games structs.GamesJSON) ([]string, string)

Types

type State

type State int
const (
	NO_STATE State = iota
	SEARCH_GAME_WAIT_GAME
)

func (State) HandleMessage

func (state State) HandleMessage(message *tgbotapi.Message, payload interface{}) (string, bool, State, interface{}, error)

HandleMessage returns message to user, should context be cached and error.

Jump to

Keyboard shortcuts

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