25 Commits
Author SHA1 Message Date
waozi 8468c88893 Preserve forum topics across dialogs and threaded requests 2026-11-20 18:01:51 -03:00
waozi 748f294c6a Expose saved dialog folders and their membership rules 2026-11-20 17:48:44 -03:00
waozi 5b167331da Pin Telegram dependencies to verified Gitea objects 2026-11-20 04:29:02 -03:00
waozi 07fa719408 Announce pinned chats, group sizes and newest messages; fit photo sizes
loadChats now carries each dialog's pin, member count and normalized newest
message so an app can order and preview chats as Telegram does.
downloadMessageFile takes max_edge to fetch a photo size that fits a bubble.
2026-11-16 00:34:01 -03:00
waozi 42fa0b2dd3 Repin packages to the rewritten history 2026-10-19 11:51:57 -03:00
waozi 9ddb31d555 Report the basic group a supergroup was upgraded from
Telegram's apps count a supergroup's shared media together with the history
of the basic group it was upgraded from; getChat now names that group as
upgraded_from_chat_id so callers can do the same.
2026-10-05 13:09:44 -03:00
waozi 0d4c6ab545 List group members, user presence and shared-media counts
searchChatMembers returns a group's recent members with roles, custom
titles and normalized users; getUser reports presence, bot message access,
active username and profile photo; getChatMessageCount counts photos,
videos, files, audio, links, voice messages and GIFs through
messages.getSearchCounters. getChat now carries the member count and
description.
2026-10-05 12:14:01 -03:00
waozi f5f264a379 Retain Telegram message identity for durable outbox retries 2026-10-04 19:09:25 -03:00
waozi c17ecaefce Support creation and verification of private Telegram groups 2026-10-04 18:49:07 -03:00
waozi ca408f41c7 Route Telegram private and group call signaling through the account session 2026-10-04 12:42:55 -03:00
waozi 210a37ab50 Preserve Telegram photo album identity and dimensions 2026-10-04 11:57:18 -03:00
waozi a7dcd23c3b Send uploaded voice notes with Telegram audio attributes 2026-10-03 16:45:09 -03:00
waozi d14f1eab61 Read doubles so chats with videos or locations load
TL decoding had no double type, so any reply holding one failed whole:
every video's duration and every location is a double, which left a
signed-in account with no chats at all. Doubles now decode with up to
nine decimals and encode from JSON numbers.

A failed decode now says why (an unknown constructor and the type that
expected it, a truncated reply or unread bytes), and Telegram's own
error codes reach callers, so 404 still ends loadChats. Two text views
the current compiler rejects are copied or scoped.
2026-10-03 11:00:28 -03:00
waozi 52731a0b74 Resume pending two-factor login from a saved account connection 2026-10-03 00:51:09 -03:00
waozi 58383f0b60 Honor receive timeouts while waiting for account sign-in 2026-10-03 00:36:29 -03:00
waozi 73eb56b8d1 Resume sign-in at the password step after AUTH_RESTART
When a restarted host asks for a code on a key that already accepted one,
Telegram answers AUTH_RESTART; continue at the two-step password instead of
requiring a new code.
2026-10-03 00:32:45 -03:00
waozi c784ed9035 Wait instead of spinning while an account awaits sign-in
Receive returned at once before sign-in, so a host waiting for a login code
or password busy-looped a CPU core.
2026-10-03 00:31:23 -03:00
waozi 07e5c137f7 Reopen dropped Telegram connections and retry the request
Telegram closes idle connections, for example while an owner reads a login
code. Requests now reopen the connection with the same authorization key
and retry; repeated sends keep their random_id.
2026-10-03 00:21:57 -03:00
waozi b1e18ee491 Send files and replies, forward, find chats and fetch chat photos
sendMessage uploads a local photo or document in 512 KiB parts (big-file
parts above 10 MiB) and can reply to a message. forwardMessages forwards
between chats; searchChats resolves @usernames and +phones and searches
contacts and public chats. Chats announce their profile photo, and
downloadChatPhoto saves it. Normalized messages name the message they reply
to and where a forward came from.
2026-10-02 22:58:19 -03:00
waozi 327d91f97f Document chat announcements and media downloads 2026-10-02 22:03:52 -03:00
waozi 2f9b40e779 Announce every chat with names and mute state, and download message media
Dialogs carry a person's full name, Saved Messages, the newest message
and Telegram's mute state, so account mirrors can link every chat and skip
chats with nothing new. History replies report the whole history's size.
downloadMessageFile saves a message's largest photo or its document to a
new owner-only file in 512 KiB parts, through an authorized connection to
the file's data center, and reports its size, type, name and SHA-256.
2026-10-02 22:03:46 -03:00
waozi eec3bfcb48 Drain large Telegram differences without advancing lost updates 2026-10-02 16:08:34 -03:00
waozi 2eea292f16 Recover Telegram account updates and persist private Ziran sessions 2026-10-02 16:04:25 -03:00
waozi 6908aaaefb Keep native platform bindings distinct when imported by applications 2026-10-02 15:33:51 -03:00
waozi ee7987e644 Implement Telegram MTProto client, account authorization and chat sessions in Ziran 2026-10-02 15:31:32 -03:00