[GH-ISSUE #3700] [BUG] Broken Telegram alert #2448

Closed
opened 2026-02-27 03:03:00 +03:00 by kerem · 8 comments
Owner

Originally created by @Nord1cWarr1or on GitHub (Dec 6, 2021).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3700

Originally assigned to: @johnoclockdk on GitHub.

User Story

As a LGSM user, I want send test alert on telegram, but it doesn't happen

Basic info

  • Distro: Debian 11
  • Game: Counter-Strike 1.6
  • Command: test-alert
  • LinuxGSM version: v21.4.1

Further Information

Commit github.com/GameServerManagers/LinuxGSM@44daf20083 (last commit at file alert_telegram.sh) broke Telegram alert.
I tried to send test-alert, but get an error:

[ .... ] Sending Alert csserver: Sending Telegram alertparse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 4, column 431
[ FAIL ] Sending Alert csserver: Sending Telegram alert: {"ok":false,"error_code":400,"description":"Bad Request: message text is empty"}

Then I copied code from previous commit (github.com/GameServerManagers/LinuxGSM@48308ec61e) at this file and everithing worked as expected.

[  OK  ] Sending Alert csserver: Sending Telegram alert

To Reproduce

Steps to reproduce the behaviour:

  1. Configure telegram alerts in lgsm config
  2. Send test-alert
  3. See error

Expected behaviour

[  OK  ] Sending Alert csserver: Sending Telegram alert
Originally created by @Nord1cWarr1or on GitHub (Dec 6, 2021). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3700 Originally assigned to: @johnoclockdk on GitHub. ## User Story As a LGSM user, I want send test alert on telegram, but it doesn't happen ## Basic info * **Distro:** Debian 11 * **Game:** Counter-Strike 1.6 * **Command:** test-alert * **LinuxGSM version:** v21.4.1 ## Further Information Commit https://github.com/GameServerManagers/LinuxGSM/commit/44daf200834c5bf56956531ff082dc1045021253 (last commit at file `alert_telegram.sh`) broke Telegram alert. I tried to send test-alert, but get an error: ``` [ .... ] Sending Alert csserver: Sending Telegram alertparse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 4, column 431 [ FAIL ] Sending Alert csserver: Sending Telegram alert: {"ok":false,"error_code":400,"description":"Bad Request: message text is empty"} ``` Then I copied code from previous commit (https://github.com/GameServerManagers/LinuxGSM/commit/48308ec61e6f01e83e7e127a8b25c8fda4ef1355) at this file and everithing worked as expected. ``` [ OK ] Sending Alert csserver: Sending Telegram alert ``` ## To Reproduce Steps to reproduce the behaviour: 1. Configure telegram alerts in lgsm config 2. Send test-alert 3. See error ## Expected behaviour ``` [ OK ] Sending Alert csserver: Sending Telegram alert ```
Author
Owner

@github-actions[bot] commented on GitHub (Dec 6, 2021):

Potential duplicates:

  • [#3567] [BUG] Broken server version (63.39%)
<!-- gh-comment-id:986843633 --> @github-actions[bot] commented on GitHub (Dec 6, 2021): Potential duplicates: - [#3567] [BUG] Broken server version (63.39%)
Author
Owner

@johnoclockdk commented on GitHub (Dec 6, 2021):

i know this bug but from a other game #3463

<!-- gh-comment-id:986863543 --> @johnoclockdk commented on GitHub (Dec 6, 2021): i know this bug but from a other game #3463
Author
Owner

@johnoclockdk commented on GitHub (Dec 6, 2021):

@Nord1cWarr1or do you have any color code in alert

<!-- gh-comment-id:986866340 --> @johnoclockdk commented on GitHub (Dec 6, 2021): @Nord1cWarr1or do you have any color code in alert
Author
Owner

@Nord1cWarr1or commented on GitHub (Dec 6, 2021):

@Nord1cWarr1or do you have any color code in alert

Sorry, but what do you mean by color code? And where it shoud be?

<!-- gh-comment-id:986875824 --> @Nord1cWarr1or commented on GitHub (Dec 6, 2021): > @Nord1cWarr1or do you have any color code in alert Sorry, but what do you mean by color code? And where it shoud be?
Author
Owner

@Nord1cWarr1or commented on GitHub (May 30, 2022):

Any news? @johnoclockdk @dgibbs64

<!-- gh-comment-id:1141027975 --> @Nord1cWarr1or commented on GitHub (May 30, 2022): Any news? @johnoclockdk @dgibbs64
Author
Owner

@bosmadev commented on GitHub (Feb 2, 2023):

I seem to experience the same issue.

When running this code directly, there is no issue.
curl -s -X POST https://api.telegram.org/bot5865808094:ASl_UM/sendMessage -F chat_id='-1001804566104' -F text='test message'

Reading furthermore in forums, all files are EOL encoded for UNIX, no hidden characters found.

Another supporter from discord with their latest LGSM is able to send a test alert with the same details in common.cfg

<!-- gh-comment-id:1414348316 --> @bosmadev commented on GitHub (Feb 2, 2023): I seem to experience the same issue. When running this code directly, there is no issue. `curl -s -X POST https://api.telegram.org/bot5865808094:ASl_UM/sendMessage -F chat_id='-1001804566104' -F text='test message'` Reading furthermore in forums, all files are EOL encoded for UNIX, no hidden characters found. Another supporter from discord with their latest LGSM is able to send a test alert with the same details in common.cfg
Author
Owner

@dgibbs64 commented on GitHub (Oct 20, 2023):

Just completed a refactor of alerts and did not spot any issues. Closing

<!-- gh-comment-id:1773440949 --> @dgibbs64 commented on GitHub (Oct 20, 2023): Just completed a refactor of alerts and did not spot any issues. Closing
Author
Owner

@github-actions[bot] commented on GitHub (Oct 21, 2024):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:2425308657 --> @github-actions[bot] commented on GitHub (Oct 21, 2024): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#2448
No description provided.