Fixed
tg sql "SELECT 1 AS one" -f jsonruns the query: the value of-f/--formatafter a positional
query was added to the SQL (SELECT 1 AS one json, a syntax error), and after--queryit was
refused as an extra argument.tg sql -f json print-schemaprints the schema.tg messages list,getandsearchsay what a service message did. A call, a pin or a
group change used to print onlymessageType: "service"with no text, so an agent reading a
chat could not tell a call had happened. Every item now hasaction, read fromraw_json(so it
works for messages cached by older versions too),nullfor other messages: a call gives
video,durationand why it ended (missed,busy,hangup,disconnect), a pin the
pinned message, a group change the new title or the users added or removed. Any other action
gives its type name.tg statusno longer counts a sender whose every cached message is deleted as missing:
nothing is left to ask Telegram for, and search doesn't show those messages by default. On a
1.16M-message cache, 1,125 of the 1,376 senders still missing after the first fetch were such
senders (#143).- Several commands can open a new cache together without failing to initialize its search index.