Skip to content
ilya-fedin edited this page Apr 17, 2022 · 6 revisions

You can get access to hidden functionality by entering a cheat code blidnly in settings (like in a game).

Code Description
videoplayer Use internal or external video player
endpoints Load custom DC Endpoints file (*.tdesktop-endpoints)
loadlang Load custom language file (*.strings)
loadcolors Load custom palette file (*.tdesktop-palette)
debugmode Enable/disable debug logs. All network events will be logged if the mode is enabled
viewlogs Open the folder where non-debug log is saved to
testmode You will be switched to test cloud1 (works only before any account is added, Shift+Alt+Right Click on Add Account button after that)
crashplease Causes a crash (useful for testing crash reporter)
moderate Binds keys 1-9 to buttons on bot keyboard. Key q sends command /translate
getdifference Issue getDifference MTProto command to fetch chat updates (e.g. messages)
testupdate Get a test update (i.e. one that is not even tested to apply correctly) one-time
folders Open folders settings
registertg Force custom scheme register (assign tg:// URIs to the app)
installlauncher Force .desktop file installation on Linux
freetype Change font engine to the Linux one on Windows and macOS (useful for testing font rendering problems)
msg_incoming Change the sound when a new message arrives
call_incoming Change the sound of incoming call
call_connect Change the sound of connection call
call_outgoing Change the sound of outgoing call
call_busy Change the sound of busy call
call_end Change the sound of end call
sounds_reset Reset sounds

These can be found in Telegram/SourceFiles/settings/settings_codes.cpp.

Notes:

  1. While you are connected to the test servers, you can either use your own phone number or use public phone numbers. These are more limited. Test phone numbers are of the form 99966XYYYY, where X is the dc_id to connect to (between 1 and 5), and Y are random numbers. The code will be XXXXX (the dc_id you chose repeated 5 times).

https://github.com/telegramdesktop/tdesktop.wiki.git

Clone this wiki locally