Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/service/tgbot.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/service/tgbot.go b/web/service/tgbot.go
index bf724829..ad9fe2c5 100644
--- a/web/service/tgbot.go
+++ b/web/service/tgbot.go
@@ -207,8 +207,8 @@ func (t *Tgbot) OnReceive() {
botHandler.HandleMessage(func(_ *telego.Bot, message telego.Message) {
if message.UsersShared != nil {
if checkAdmin(message.From.ID) {
- userIDs := message.UsersShared.UserIDs
- for _, userID := range userIDs {
+ for _, sharedUser := range message.UsersShared.Users {
+ userID := sharedUser.UserID
needRestart, err := t.inboundService.SetClientTelegramUserID(message.UsersShared.RequestID, userID)
if needRestart {
t.xrayService.SetToNeedRestart()