1
0
telegram/login/new.go

12 lines
282 B
Go
Raw Normal View History

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}
}