Documentation ¶
Index ¶
- func DeleteUserSession(userID int)
- func GetAction(userID int) (string, error)
- func GetChatID(userID int) (int64, error)
- func GetMessageID(userID int) (int, error)
- func IsInteractionTimedOut(userID int) bool
- func NewSession(userID int, chatID int64, action string)
- func ResetTimer(userID int) error
- func SetMessageID(userID, MessageID int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUserSession ¶
func DeleteUserSession(userID int)
DeleteUserSession deletes a user's session when it's no longer needed.
func GetMessageID ¶
GetMessageID retrieves the message ID for a user's session.
func IsInteractionTimedOut ¶
IsInteractionTimedOut checks if a user's session has timed out due to inactivity.
func NewSession ¶
NewSession creates a new user session with the given userID, chatID, and action.
func ResetTimer ¶
ResetTimer resets the session timer for a user's session.
func SetMessageID ¶
SetMessageID sets the message ID for a user's session, renewing the session timer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.