welcomer

package
v0.0.0-...-3723a19 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ac *appcontext.Context)

New is a appcontext initialization function

Types

type Welcomer

type Welcomer struct{}

Welcomer is a function-handling struct for welcomer

func (*Welcomer) GroupWelcomeMessage

func (w *Welcomer) GroupWelcomeMessage(update *tgbotapi.Update) string

GroupWelcomeMessage welcomes new user on group or bot itself

func (*Welcomer) Init

func (w *Welcomer) Init()

Init is an initialization function for welcomer

func (*Welcomer) PrivateWelcomeMessageAuthorized

func (w *Welcomer) PrivateWelcomeMessageAuthorized(update *tgbotapi.Update, playerRaw *dbmapping.Player)

PrivateWelcomeMessageAuthorized greets existing user

func (*Welcomer) PrivateWelcomeMessageSpecial

func (w *Welcomer) PrivateWelcomeMessageSpecial(update *tgbotapi.Update, playerRaw *dbmapping.Player)

PrivateWelcomeMessageSpecial greets existing user with `special` access

func (*Welcomer) PrivateWelcomeMessageUnauthorized

func (w *Welcomer) PrivateWelcomeMessageUnauthorized(update *tgbotapi.Update)

PrivateWelcomeMessageUnauthorized tell new user what to do.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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