Documentation ¶
Index ¶
- func New(ac *appcontext.Context)
- type Welcomer
- func (w *Welcomer) GroupWelcomeMessage(update *tgbotapi.Update) string
- func (w *Welcomer) Init()
- func (w *Welcomer) PrivateWelcomeMessageAuthorized(update *tgbotapi.Update, playerRaw *dbmapping.Player)
- func (w *Welcomer) PrivateWelcomeMessageSpecial(update *tgbotapi.Update, playerRaw *dbmapping.Player)
- func (w *Welcomer) PrivateWelcomeMessageUnauthorized(update *tgbotapi.Update)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Welcomer ¶
type Welcomer struct{}
Welcomer is a function-handling struct for welcomer
func (*Welcomer) GroupWelcomeMessage ¶
GroupWelcomeMessage welcomes new user on group or bot itself
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.
Click to show internal directories.
Click to hide internal directories.