Commit graph

73 commits

Author SHA1 Message Date
Gapord
2ed0a2f4ee Enhance broadcast functionality in Tgbot
- Added support for broadcasting messages to users based on their email.
- Improved error handling with localized messages for inbound and client retrieval failures.
- Introduced inline keyboard options for selecting inbounds and users during the broadcast process.
- Updated translation files to include new strings for broadcasting features.
2025-07-28 08:09:13 +03:00
Gapord
15b4ae9be6 test 2025-07-27 12:49:45 +03:00
spatiumstas
42a3fee406 feat: add command list in telegram bot (#3027) 2025-05-28 15:26:29 +07:00
nistootsin
b0b72fd5c8 Added 3 new buttons to telegram bot (#2965)
* Add a new button to but : Reset All Clients

* handel translation for `Reset All Clients` button

* refactoring

* add a new button to telegram bot >> `Sorted Traffic Usage Report`

* - refactoring

* add ip limit conifg on new client adding time
2025-05-06 18:27:17 +02:00
nistootsin
cd295775f2 feat: add Submit As Enable in telegram bot 2025-04-16 15:16:55 +07:00
mhsanaei
d77d5f0152 minor changes 2025-04-07 00:45:52 +02:00
nistootsin
23a554a5aa Add Admin-Controlled Client Management to Telegram Bot (#2788)
* Add feature to add clients to inbound:
- Implement buttons for adding new clients
- Handle client addition process (submission remains to be completed)
- Support for multiple languages

* update the go.mod

* feat: complete submission process for adding a client to inbounds

* - Add client variables: client_method, client_sh_password, client_tr_password
- Exclude specific inbound protocols (HTTP, WireGuard, Socks, DOKODEMO) from addclient inline button

* - customize the add client message and json for each protocol

* - handle password input rather than id for shadow and trojan protocols

* - remove add_client_as_enable button in bot

* restructrure the add client bot feature

* update all files in web/translation/

* Refactoring

* - add traffic button to add client bot feature

* - fix a mistake in the email prompt message

* - add expire data button to add client telegram process.

* Refactroring

* remove refresh button in add client

* - delete message after cancel

* - uptimize the process of adding client by deleting main message on
  getting text inputs.
2025-03-26 19:16:35 +01:00
mhsanaei
1c452cb40e Refactor: Use any instead of interface{} 2025-03-12 20:43:43 +01:00
mhsanaei
f31304a9a3 tgbot - restart
change restart force to restart
2025-03-08 23:08:04 +01:00
MadrinX
d670a70ee0 feat(tgbot): Add the option to change the telegram API server (#2584) 2024-10-17 10:59:42 +02:00
Ahmad Thoriq Najahi
42ee6d7a10 feat(tgbot): Allow restart core via telegram bot (#2581) 2024-10-16 14:39:25 +02:00
Rizvan Nukhtarov
4b6f05309e New - TGbot, "All clients" button (#2493) 2024-08-18 23:30:56 +02:00
mhsanaei
4ed0f6bfc8 improved - message logs 2024-07-08 23:47:49 +02:00
mhsanaei
c82b207288 Typo fixed 2024-07-07 12:10:24 +02:00
mhsanaei
99b4bd5562 tgbot - login notify (show password for failed login) 2024-07-03 21:53:45 +02:00
Ahmad Thoriq Najahi
05469ce280 feat(tgbot): Add refresh button to server usage (#2253)
- Added a refresh button to the server usage interface to allow users to refresh the displayed information.
 - Updated the sendReport function to use the sendServerUsage function instead of getServerUsage to ensure consistency in functionality.

Signed-off-by: Ahmad Thoriq Najahi <najahi@zephyrus.id>
2024-05-14 14:00:10 +02:00
Ahmad Thoriq Najahi
f2c2e281a8 feat(tgbot): Add xray-core version into server status (#2236)
Signed-off-by: Ahmad Thoriq Najahi <najahi@zephyrus.id>
2024-04-29 08:44:16 +02:00
mhsanaei
ac1f4fb6a0 telego v0.29.2 2024-04-02 15:43:01 +03:30
mhsanaei
242041d56f tgbot - fix chatid 2024-04-02 15:04:44 +03:30
somebodywashere
e09ac1d74f Small fixes (#2106) 2024-03-21 10:21:12 +03:30
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