Skip to Content
Telegram → MT5Logs & State

Logs & State

Runtime files are created under STATE_DIR and LOGS_DIR (defaults ./state and ./logs).

State

PathPurpose
state/cursor.jsonLast processed Telegram message ID for the configured chat
state/handled.jsonRecent handled message keys
state/telegram.sessionTelethon session file if TELEGRAM_SESSION_STRING is not used

Logs

PathPurpose
logs/raw.jsonlRaw Telegram messages when LOG_RAW_MESSAGES=true
logs/signals.jsonlParsed trade signals
logs/executions.jsonlDry-run and live execution attempts
logs/errors.jsonlParser, Telegram, and MT5 failures

Paths above are relative to the configured directories; exact filenames match the README layout when using the default STATE_DIR / LOGS_DIR.

Last updated on