To integrate Telegram with MT4 safely:
Example MQL4 snippet (safe, no DLL):
string url = "https://api.telegram.org/bot" + Token + "/sendMessage?chat_id=" + ChatID + "&text=" + message;
int res = WebRequest("GET", url, "", NULL, NULL, NULL, NULL, NULL, 10000, NULL, 0, NULL);
Open regedit and search for telegram4mql.dll. Delete any LoadAppInit_DLLs, AppInit_DLLs, or Winlogon entries referencing it. Backup registry before making changes. telegram4mql.dll
| Check | Action |
|-------|--------|
| Source | Only download from the original developer (e.g., a known MQL5 marketplace vendor or a verified GitHub repository with many stars/forks). |
| Signature | Right-click → Properties → Digital Signatures. Should show a valid certificate (e.g., from a software company, not self-signed). |
| Decompile | Use a tool like DLL Export Viewer to see which functions it exports. Suspicious exports (e.g., SendKeys, InjectThread) are red flags. |
| Sandbox | Run in a virtual machine or isolated environment before using on a live trading account. | To integrate Telegram with MT4 safely: