mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-01-16 18:49:35 +00:00
Update web/service/tgbot.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
920162644a
commit
81e2275fe2
1 changed files with 1 additions and 1 deletions
|
|
@ -906,7 +906,7 @@ func (t *Tgbot) answerCallback(callbackQuery *telego.CallbackQuery, isAdmin bool
|
||||||
t.searchClient(chatId, email, callbackQuery.Message.GetMessageID())
|
t.searchClient(chatId, email, callbackQuery.Message.GetMessageID())
|
||||||
case "add_client_limit_traffic_c":
|
case "add_client_limit_traffic_c":
|
||||||
limitTraffic, _ := strconv.ParseInt(dataArray[1], 10, 64)
|
limitTraffic, _ := strconv.ParseInt(dataArray[1], 10, 64)
|
||||||
client_TotalGB = int64(limitTraffic) * 1024 * 1024 * 1024
|
client_TotalGB = limitTraffic * 1024 * 1024 * 1024
|
||||||
messageId := callbackQuery.Message.GetMessageID()
|
messageId := callbackQuery.Message.GetMessageID()
|
||||||
inbound, err := t.inboundService.GetInbound(receiver_inbound_ID)
|
inbound, err := t.inboundService.GetInbound(receiver_inbound_ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue