Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 16:56
· 299 commits to main since this release

Fixes from a day of running the daemon on a real account. Restart the daemon after
the upgrade: its first dialog pass catches up the messages an earlier version missed
after a laptop sleep or a network drop (#124).

Added

  • tg status shows how far the history backfill is: progress.history gives the messages
    cached of the counts Telegram gives on sync pages, the messages and chats left, the 5 chats
    with the most left, and the time left at the pace of the last 15 minutes of history pages
    (none without a measured pace); each account gets its own figures. Pretty output shows
    History Cached and History Left (#126).

Fixed

  • A channel with sync off now has its newest post cached: Telegram may push
    few live posts of a channel, or none, and mtcute can't fetch the ones it
    missed, so every dialog pass (on start, after a reconnect and after a wake)
    caches the newest message of each chat with sync off. The docs now say which
    messages arrive live (#125).
  • The daemon catches up after mtcute reconnects on its own (a network drop)
    and after the computer wakes from sleep, not only after its own reconnect:
    it watches the connection state and the wall clock, runs the dialog pass on
    the client it has and queues catch-up for the chats that got messages
    meanwhile, at most once per account in 5 minutes. It logs one line, and
    tg status shows the last one in accounts.accounts[].connection.last_catch_up
    (#124).
  • The daemon log is quieter and keeps personal data out: it names an account
    #1 (@username) or by a masked phone, never the full number or name;
    mtcute's warnings show only with --verbose, its update gap notes at debug
    level; and a Telegram client error is one line, without the stack or the
    compiled binary's source (#128).
  • Usage stats no longer slow down a command (#129). Every command used to wait up
    to half a second for them before it exited; now a background copy of tg sends
    them after the command has exited, so tg status takes as long as with
    DO_NOT_TRACK=1, even when the network is slow or down. The daemon still sends
    from its own process.
  • The daemon's sync pages now cache their senders, as tg messages list does, before the
    messages, so search shows the sender's name and --sender finds their messages in groups.
    Messages synced before keep their index without the name until they are re-indexed (#93).
    The pages also store the chat's message count on the server in
    chat_sync_state.total_messages, which stayed empty (#126).
  • tg status rate_limits.api_calls_last_minute and calls_by_method count the last 60
    seconds instead of the current calendar minute, which showed 2 calls while the daemon made
    about 14 a minute (#127).
  • The daemon logs every request it sends to api_activity (method, outcome, Telegram's error
    code, duration), as CLI commands do: sync pages, contacts checks, dialog passes, getMe
    health checks and mtcute's update requests; it logged none. api_activity
    timestamps are in ms, as documented: older versions wrote seconds, and the next prune turns
    those rows into ms (#127).