1
0
telegram/login/new.go
2018-04-12 19:19:41 +05:00

12 lines
282 B
Go

package login
// App represents a widget which get and validate users authorizations.
type App struct {
SecretKey string
}
// New create new app widget for validate authorizations with bot token as secret key.
func New(botToken string) *App {
return &App{SecretKey: botToken}
}