Commit graph

53 commits

Author SHA1 Message Date
somebodywashere
f0ab31b5da Fixed unnecessary Xray restarts in Tgbot 2024-03-15 21:13:20 +03:00
Hamidreza
d503bff637 Some fixes and improvements (#1997)
* [refactor] api controller

* [fix] access log path

better to not hardcode the access log path, maybe some ppl dont want to use the default ./access.log

* [fix] set select options from logs paths in xray settings

* [update] .gitignore

* [lint] all .go files

* [update] use status code for jsonMsg and 401 to unauthorize

* [update] handle response status code via axios

* [fix] set correct value if log paths is set to 'none'

we also use the default value for the paths if its set to none

* [fix] iplimit - only warning access log if f2b is installed
2024-03-11 01:01:24 +03:30
MHSanaei
5997b3484c Enhance CheckClientIpJob #1964 2024-03-02 21:16:28 +03:30
MHSanaei
0d9f0b4326 tgbot - Telegram api 7.1 changes 2024-02-17 21:15:53 +03:30
MHSanaei
2495545cc5 Fix tgbot - document upload issue for empty ban logs 2024-02-04 01:50:14 +03:30
MHSanaei
77492579cc fix tgbot - no warning for empty socks5 2024-02-04 01:45:55 +03:30
MHSanaei
ae1062a02e bug fix - traffic limit tbbot 2024-01-29 23:36:03 +03:30
Saeid
419493b71b socks5 proxy option added to telegram bot settings (#1500)
* socks5 option added to telegram bot settings

* update socks5 proxy settings translations
2024-01-03 16:29:29 +03:30
somebodywashere
071fd5d2ea Major changes to tgbot, also small changes for panel (#1463)
* Reduce outage time on Xray errors

* Improved logs clearing, added previous logs
File name change: 3xipl-access-persistent.log -> 3xipl-ap.log
All previous logs have .prev suffix

* Preparations for tgbot additions

* [tgbot] Improvements, Additions and Fixes
* Changed interaction with Expire Date for Clients
* Added more info and interactions with Online Clients
* Added a way to get Ban Logs (also added them to backup)
* Few fixes and optimizations in code
* Fixed RU translation

* [tgbot] More updates and fixes

* [tgbot] Quick Fix

* [tgbot] Quick Fix 2

* [tgbot] Big Updates
Added Notifications for Clients throught Tgbot (when Expire)
Added compability for Usernames both w/wo @
Added more buttons overall for admins

* [tgbot] Fixes

* [tbot] Fixes 2

* [tgbot] Removed usernames support for Notifications to work

* [tgbot] Fix

* [tgbot] Fix Notify

* [tgbot] small fixes

* [tgbot] replyMarkup only for last message on big messages

* [tgbot] Fixed last message is empty

* [tgbot] Fix messages split
2024-01-01 18:37:56 +03:30
Alireza Ahmadi
5cd8ce285c Update DB WAL before backup #1300 2023-12-08 20:35:10 +01:00
Masoud Hidden
fd2c152a91 [bot] Some new features for telegram bot (#1241)
* [bot] Some new features for telegram bot

+Ability to set traffic limit for client.
+Custom input for reset expire days.
+Custom input for reset IP limit.
+Added refresh time to the client ip log message.

* [bot] fix translations
2023-11-20 17:47:59 +03:30
MHSanaei
a9ae95311f fixed telego
after  github.com/mymmrac/telego from 0.26.3 to 0.27.0
2023-10-25 23:03:17 +03:30
MHSanaei
ed0dc2a7ee v1.7.5 2023-08-02 17:19:50 +03:30
MHSanaei
c8e3efe914 new - tg Login Notification #584 2023-06-17 19:11:16 +03:30
somebodywashere
ff4f65083c [tgbot] - bugfix 2023-05-31 08:37:03 +00:00
Hamidreza
2bba2ec00c FIX tgbot adminIds 2023-05-31 05:01:20 +03:30
Hamidreza Ghavami
648494f555 add /id command to tgbot to get user id 2023-05-31 02:31:00 +04:30
somebodywashere
1b41d3c964 [tgbot] - some fixes and improvments (#542) 2023-05-30 15:07:23 +03:30
Hamidreza Ghavami
c0b3660c58 Update hashstorage functionality 2023-05-21 08:33:08 +04:30
Hamidreza Ghavami
15f101ed32 fix tgbot 2023-05-21 07:41:59 +04:30
Hamidreza Ghavami
e84132ea7c FIX ERROR 'msg and reply are same' in tgbot 2023-05-21 05:48:19 +04:30
Hamidreza Ghavami
e62305f16c FIX hashStorage remove expire job 2023-05-21 05:33:01 +04:30
Hamidreza Ghavami
9b7c8cad28 Update tgbot locale + add I18nBot 2023-05-21 03:30:26 +04:30
Hamidreza Ghavami
9bcef91cd7 FIX hashStorage 2023-05-20 21:46:42 +04:30
Hamidreza Ghavami
65ba44d423 FIX callback query and BUTTON_DATA_INVALID error with hashStorage 2023-05-20 20:29:28 +04:30
Hamidreza Ghavami
cc380b8c71 init i18n in tgbot 2023-05-20 20:08:01 +04:30
Hamidreza Ghavami
c95037f78f some fix and prune for tgbot 2023-05-20 19:39:01 +04:30
Mahdi Nemati
946d1bcc21 Api for backup Telegram (#468) 2023-05-19 00:31:05 +03:30
Masoud Hidden
51aafb45f9 [tgbot] Fix reply keyboard height 2023-05-14 22:55:01 +03:30
Masoud Hidden
0693bd540e [tgbot] Ability to remove telegram user from the client in the bot 2023-05-14 22:43:23 +03:30
Masoud Hidden
58fda2f1ee [tgbot] Ability to select telegram user for client from bot 2023-05-14 22:07:49 +03:30
Masoud Hidden
fbb2ec1e39 [tgbot] Changed to telego 2023-05-14 18:50:01 +03:30
MHSanaei
e2de4b1f74 [bug] fix login failure when tgbot is not active
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-05-13 13:31:46 +03:30
Masoud Hidden
5704975c42 Fix ability to use userId in tgId 2023-05-06 02:36:46 +03:30
Masoud Hidden
0fa4b00ec4 Fix get client ips 2023-05-05 20:07:47 +03:30
Masoud Hidden
403e116cd6 Fix bot client enable button 2023-05-05 19:50:40 +03:30
Masoud Hidden
675cc3378c Added some new buttons to bot and ability to use userId in tgId 2023-05-05 18:20:56 +03:30
Masoud Hidden
1df50aa5ec Change some InlineKeyboard data length 2023-05-05 16:02:16 +03:30
Masoud Hidden
1bf7333359 fix ResetClientExpiryTimeByEmail 2023-05-05 04:34:39 +03:30
Masoud Hidden
57934bf6ea Fix restart service 2023-05-05 02:47:26 +03:30
Masoud Hidden
7c12b1be9f Fix typo 2023-05-05 02:14:56 +03:30
Masoud Hidden
40c8cf402f Refresh button for client report in telegram bot
Added unlimited button for expire days.
2023-05-05 01:48:37 +03:30
Masoud Hidden
d001e75a94 Client reset buttons for telegram bot 2023-05-05 01:16:43 +03:30
MHSanaei
ec9d53d8cb update by client id
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-25 14:38:35 +03:30
MHSanaei
59933b6272 syntax fix thanks to @lk29
Co-Authored-By: lk29 <12291632+lk29@users.noreply.github.com>
2023-04-14 01:28:08 +03:30
MHSanaei
aaa35ab537 fixed 2023-04-10 00:55:47 +03:30
MHSanaei
e98a874ef1 alireza update pack
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-09 23:13:18 +03:30
MHSanaei
9c4c414e8e Revert "Add version and log"
This reverts commit 21605a8e8b.
2023-03-24 17:14:26 +03:30
MHSanaei
21605a8e8b Add version and log
TGBOT: Add xray config to backup
[TGBOT] add seach inbound
2023-03-24 17:13:31 +03:30
MHSanaei
7f9f0fd075 Add version and log 2023-03-24 17:08:30 +03:30