domain

package
v0.0.0-...-d904837 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	// Unique identifier for user in go-tg-bot.
	ID UserID

	// ID of Telegram user.
	TelegramID tg.UserID

	// First name
	FirstName string

	// Last name (optional)
	LastName null.String

	// TelegramUsername (optional)
	TelegramUsername null.String

	// Latest client language code (optional)
	LanguageCode null.String

	// Preferred language code.
	// If language code is in the list of supported languages, then it will be used.
	// Otherwise, the default language code will be used.
	PreferredLanguageCode null.String

	// Deeplink of the user.
	// Contains start parameters of the bot.
	Deeplink null.String

	// Contains date of
	StoppedAt null.Time

	// Time when user was created.
	CreatedAt time.Time

	// UpdatedAt is the time when user was last updated (optional).
	UpdatedAt null.Time
}

func (*User) Name

func (user *User) Name() string

type UserID

type UserID int64

UserID is a unique identifier for a user.

Jump to

Keyboard shortcuts

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