mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
FIX tgbot adminIds
This commit is contained in:
parent
2a9cb6d29e
commit
d694e6eafc
1 changed files with 8 additions and 6 deletions
|
@ -77,6 +77,7 @@ func (t *Tgbot) Start(i18nFS embed.FS) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if tgBotid != "" {
|
||||
for _, adminId := range strings.Split(tgBotid, ",") {
|
||||
id, err := strconv.Atoi(adminId)
|
||||
if err != nil {
|
||||
|
@ -85,6 +86,7 @@ func (t *Tgbot) Start(i18nFS embed.FS) error {
|
|||
}
|
||||
adminIds = append(adminIds, int64(id))
|
||||
}
|
||||
}
|
||||
|
||||
bot, err = telego.NewBot(tgBottoken)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue