Documentation ¶
Index ¶
- Constants
- func ConnectToBotFromDatabase(db *sqlx.DB, botModel *Bot, ...) error
- func DeleteBotByUserID(db *sqlx.DB, botUserID int64) error
- func DeleteDeviceBySessionString(db *sqlx.DB, session string) error
- func InsertNewBot(db *sqlx.DB, phone string, username string, password string, userID int64, ...) error
- func InsertNewDevice(db *sqlx.DB, userID int64, apiID int, apiHash string, sessionString string, ...) error
- func OpenDBConnection(databaseURL string) (*sqlx.DB, error)
- type Bot
- type BotAndEntityRelationship
- type ChannelsPts
- type Device
- type State
Constants ¶
View Source
const ( // 0, illimited number of conns MaxConn = 0 // 0, letting them idle forever MaxIdleConn = 0 // 0, connections are reused forever MaxLifetimeConn = 0 )
Variables ¶
This section is empty.
Functions ¶
func InsertNewBot ¶
func InsertNewDevice ¶
Types ¶
type Bot ¶
type ChannelsPts ¶
type Device ¶
type Device struct { BotUserID int64 `db:"bot_user_id" json:"bot_user_id"` ApiID int `db:"api_id" json:"api_id"` ApiHash string `db:"api_hash" json:"api_hash"` SessionString string `db:"session_string" json:"session_string"` DeviceModel string `db:"device_model" json:"device_model"` SystemVersion string `db:"system_version" json:"system_version"` AppVersion string `db:"app_version" json:"app_version"` LangPack string `db:"lang_pack" json:"lang_pack"` LangCode string `db:"lang_code" json:"lang_code"` SystemLangCode string `db:"system_lang_code" json:"system_lang_code"` Proxy sql.NullString `db:"proxy" json:"proxy"` CreationDate string `db:"creation_date" json:"creation_date"` }
Click to show internal directories.
Click to hide internal directories.