Tested on Windows server 2022 and ubuntu 22.
For proper operation, it is required to disable the hibernate mode on the server. To do this, specify sv_hibernate_when_empty 0 in the server config.
- WhiteList
- Administrators
- View server status
- View players on the server
- View players info and actions *(Only for admins)
- Send server command *(Only for admins)
- Send server message *(Only for admins)
- Notify admin if player connected to server (setting NotifyAdminOnConnectUser in Cs2Telegram.json)
- Create custom menu with message and web links
- Player can send a message to the administrators of the server on Telegram.
- Status
- Players
- Menu
- Admin menu *(Only for admins)
- Server command *(Only for admins)
- Generate inline menu favorite commands from config Cs2Telegram.json - ServerCommandsMenuItems
- Server message *(Only for admins)
- Players info *(Only for admins)
- Actions with players
!tgreport [message] - Send a message to the administrators of the server on Telegram.
- Create a new bot on BotFather and obtain the token. Create Telegram Chatbot
- Move the "Cs2Telegram" folder into the "plugins" folder.
- Open file telegramconfig.json
- In the "Token" field, enter the token obtained through BotFather.
- Restart server
If you want the bot to be used only by you, add your Telegram user ID to the "WhiteListUsers" field. Get my id To add an administrator, use the "Admins" field.
path - ..\csgo\addons\counterstrikesharp\configs\plugins\Cs2Telegram\Cs2Telegram.json
{
"Token": "", - Key for interacting with the bot.
"Admins": [], - List of administrators.
"WhiteListUsers": [], - List of users who can use the bot. If the value is empty, all users can use the bot.
"ClearUpdatesOnStart": true, - Clears commands that were invoked when the bot was not running.
"BotId": 0, - Unique identifier of the bot. May be required if multiple bots are used in the same application.
"ServerCommandsMenuItems": ["bot_add", "bot_kick"], - List command for inline buttons
"NotifyAdminOnConnectUser": true, - If true notify admins on connect new player on server
"ColumnMainMenu": 2, - Count column in main menu
"CustomCommandsEnabled": true, - enable or no custom commands
"ShowCustomMenu": false, - If true show custom menu
"CustomCommands": { -
"Commands": [
{
"ButtonName": "Custom Menu",
"Message": "Custom Message",
"AddInMainMenu": true,
"Column": 1,
"WebMenuItems": [
{
"Name": "Google",
"Url": "Https://google.com"
}
]
}
]
},
"ConfigVersion": 4
}