Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func (*Repo) Get ¶
Get returns a state by telegram ID. If there is no state in the database, a new one will be created.
type Repository ¶
type State ¶
type State struct { State ID // Conversation state StateBefore ID // State before handling current update TelegramID int Username string FirstName string LastName string LanguageCode string CannotReceiveMessages bool LastNotificationAt time.Time VKID int Friends []friendship.Friend NewFriend friendship.Friend }
Click to show internal directories.
Click to hide internal directories.