package
Version:
v0.0.0-...-82869e8
Opens a new window with list of versions in this module.
Published: Nov 16, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetSettings handler returns telegram settings
Start creates new tg bot instance and listens for new events
UpdateSettings handler updates telegram settings
type Settings struct {
Name string `json:"name"`
Token string `json:"token" binding:"required"`
Users []User `json:"users"`
}
Settings struct
type User struct {
Username string `json:"username"`
Chat int `json:"chat"`
Apps []struct {
ID primitive.ObjectID `json:"id"`
Level string `json:"level"`
} `json:"apps"`
}
User struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.