Telegram github commits and releases
4.44K subscribers
601 files
20.9K links
Broadcast from the most important Telegram clients' repositories
Download Telegram
telegramdesktop/tdesktop/public-canary • e4a8e0b • 1 files, +10/-1
Fallback to v1 update unpacking.

telegramdesktop/tdesktop/public-canary • 3a10553 • 3 files, +26/-7
[ai] Refuse implausible test watchdog values

Task: 2026/08/23/refuse-implausible-test-watchdog-values

telegramdesktop/tdesktop/public-canary • b441b83 • 3 files, +0/-0
Delete unused account_check icon rasters

Task: 2026/08/18/delete-orphaned-account-check-icon

telegramdesktop/tdesktop/public-canary • 329910a • 2 files, +11/-2
Correct shared media index writes and viewer counts

Task: 2026/08/18/repair-shared-media-index-and-count-bookkeeping

telegramdesktop/tdesktop/public-canary • ef9be27 • 1 files, +16/-3
Re-index a sent message only when its thread moves

Task: 2026/08/18/repair-shared-media-index-and-count-bookkeeping

telegramdesktop/tdesktop/public-canary • 99ad271 • 2 files, +60/-6
Derive the pinned bar's topic root from the thread

Task: 2026/08/19/align-replies-thread-shared-media-attribution

telegramdesktop/tdesktop/public-canary • 206edab • 2 files, +1/-1
Pair the uploaded media edit's shared media removal

Task: 2026/08/19/pair-media-edit-removal-with-index-add

telegramdesktop/tdesktop/public-canary • 4f10eb6 • 1 files, +20/-5
Drop a sent message from the shared media lists it left

Task: 2026/08/19/match-sent-message-removal-to-written-mask

telegramdesktop/tdesktop/public-canary • f1e7b58 • 1 files, +3/-3
Don't keep a media reference across rich page changes

Task: 2026/08/19/refetch-saved-media-after-rich-page-changes

telegramdesktop/tdesktop/public-canary • 0b9f3f9 • 5 files, +30/-13
Don't lower shared media counts for unindexed messages

Task: 2026/08/20/stop-unmatched-removal-lowering-shared-media-counts

telegramdesktop/tdesktop/public-canary • e4dc19f • 7 files, +40/-56
Tie stored pinned index writes to the pinned flag

Task: 2026/08/19/unify-pinned-index-writers

#tdesktop
🫡3
telegramdesktop/tdesktop/public-canary • 411085f • 2 files, +52/-1
Write the pinned thread index only in forum peers

Task: 2026/08/20/stop-orphaning-general-id-shared-media-lists

telegramdesktop/tdesktop/public-canary • 4023d1a • 2 files, +5/-2
Give a saved sublist its own pinned message list

Task: 2026/08/19/make-saved-sublist-pinned-bar-read-one-list

telegramdesktop/tdesktop/public-canary • 3ec95b8 • 1 files, +6/-0
Retire shared media of a deleted topic with no object

Task: 2026/08/20/retire-forum-media-lists-without-topic-objects

telegramdesktop/tdesktop/public-canary • 30876f2 • 5 files, +31/-0
Retire all topic shared media when a forum is destroyed

Task: 2026/08/20/retire-stranded-forum-media-keys-on-forum-teardown

telegramdesktop/tdesktop/public-canary • 2b9fb29 • 1 files, +6/-4
Guard the live-topic media unload against a zero root

Task: 2026/08/20/guard-live-topic-unload-against-zero-root

telegramdesktop/tdesktop/public-canary • e389116 • 1 files, +6/-4
Guard the forum teardown media unload against a zero root

Task: 2026/08/20/guard-forum-teardown-unload-against-zero-root

telegramdesktop/tdesktop/public-canary • 8cde4e4 • 2 files, +4/-4
Resolve the self peer sublist in the shared resolver

Task: 2026/08/20/resolve-self-peer-sublist-in-shared-resolver

telegramdesktop/tdesktop/public-canary • 5dada73 • 2 files, +0/-2
Drop the write-only monoforum id from top controls

Task: 2026/08/20/retire-write-only-top-controls-monoforum-peer-id

telegramdesktop/tdesktop/public-canary • fee7306 • 1 files, +1/-1
Read the inbox when a sublist has no parent chat

Task: 2026/08/20/restore-read-inbox-on-parentless-sublist-send

telegramdesktop/tdesktop/public-canary • f5b5f84 • 1 files, +2/-8
Use the shared sublist resolver in the player panel

Task: 2026/08/20/collapse-player-panel-sublist-onto-shared-resolver

#tdesktop
🫡3
telegramdesktop/tdesktop/public-canary • 2c095b0 • 4 files, +35/-0
Request pinned messages when a pin is not loaded

Task: 2026/08/20/reach-unloaded-pin-on-complete-pinned-slice

telegramdesktop/tdesktop/public-canary • 7fc04c3 • 6 files, +21/-10
Open a saved sublist's own shared media page

Task: 2026/08/20/open-saved-sublist-own-info-media-page

telegramdesktop/tdesktop/public-canary • 3188a10 • 9 files, +63/-43
Align sublist media count, query and window keys

Task: 2026/08/21/align-sublist-media-count-query-and-window-keys

telegramdesktop/tdesktop/public-canary • 0fb9de2 • 4 files, +55/-3
Keep Info pages on their topic or sublist

Task: 2026/08/21/preserve-info-thread-identity-and-lifetime

telegramdesktop/tdesktop/public-canary • dfa728f • 1 files, +12/-10
Tear down Info after a sublist is destroyed

Task: 2026/08/21/preserve-info-thread-identity-and-lifetime

telegramdesktop/tdesktop/public-canary • 5af7323 • 1 files, +14/-12
Clear Info immediately when its sublist dies

Task: 2026/08/21/preserve-info-thread-identity-and-lifetime

telegramdesktop/tdesktop/public-canary • 48fc35a • 1 files, +9/-13
Always drop an Info wrap when its sublist dies

Task: 2026/08/21/preserve-info-thread-identity-and-lifetime

telegramdesktop/tdesktop/public-canary • 7c87f53 • 6 files, +90/-34
Reach unloaded pins on thread keys and updates

Task: 2026/08/21/reach-unloaded-pins-across-thread-and-update-paths

telegramdesktop/tdesktop/public-canary • 8ca5c10 • 3 files, +11/-4
Rebind Info wrap teardown when a sublist is replaced

Task: 2026/08/21/resubscribe-info-wrap-teardown-on-replaced-sublist

telegramdesktop/tdesktop/public-canary • 2f3b1b2 • 2 files, +14/-10
Tear down Layer Info instantly when its sublist dies

Task: 2026/08/21/resubscribe-info-wrap-teardown-on-replaced-sublist

telegramdesktop/tdesktop/public-canary • 298f4c8 • 2 files, +17/-14
Queue Info wrap teardown off sublist destroyed()

Task: 2026/08/21/resubscribe-info-wrap-teardown-on-replaced-sublist

#tdesktop
🫡3
telegramdesktop/tdesktop/public-canary • 4f6a48f • 3 files, +19/-21
Hide Layer Info before its sublist is erased

Task: 2026/08/21/resubscribe-info-wrap-teardown-on-replaced-sublist

telegramdesktop/tdesktop/public-canary • 1aaeee4 • 2 files, +15/-18
Preserve teardown stream across Info wrap removal

Task: 2026/08/21/resubscribe-info-wrap-teardown-on-replaced-sublist

telegramdesktop/tdesktop/public-canary • 055522e • 1 files, +0/-1
Remove stale Info teardown implementation note

Task: 2026/08/21/resubscribe-info-wrap-teardown-on-replaced-sublist

telegramdesktop/tdesktop/public-canary • dea7ba5 • 1 files, +3/-2
Keep saved sublists alive through item teardown

Task: 2026/08/21/finish-info-wrap-sublist-teardown-past-item-destroy

telegramdesktop/tdesktop/public-canary • 28d924b • 4 files, +39/-20
Align sublist media counts, windows and titles

Task: 2026/08/21/align-sublist-media-count-window-and-title

telegramdesktop/tdesktop/public-canary • 5f1bf03 • 1 files, +7/-5
Show the new window tooltip only on entries that have one

Task: 2026/08/23/verify-saved-sublist-media-surfaces-and-gate-tooltip

telegramdesktop/tdesktop/public-canary • 0cb4b75 • 4 files, +90/-67
Unify sublist media window ids and persisted titles

Task: 2026/08/23/unify-sublist-separate-id-and-window-naming-rulings

telegramdesktop/tdesktop/public-canary • 7f9844b • 1 files, +2/-2
Limit media topic context to forum chats

telegramdesktop/tdesktop/public-canary • 1a70cff • 1 files, +1/-1
Removed stale comment about swscale destination format caching.

telegramdesktop/tdesktop/public-canary • 963f8bb • 1 files, +5/-0
Restricted transcode temp directory permissions to user.

Related commit: 0807483acc.

telegramdesktop/tdesktop/public-canary • dae8e52 • 2 files, +26/-6
Extracted video editor layer showing to shared helper.

#tdesktop
🫡3
telegramdesktop/tdesktop/public-canary • 74503d9 • 1 files, +26/-10
Extracted shared video encoder setup from H264 encoder.

telegramdesktop/tdesktop/public-canary • cb897b2 • 2 files, +7/-3
Added VP9 encoder and webm muxer to ffmpeg build configs.

telegramdesktop/tdesktop/public-canary • 46be7b3 • 2 files, +150/-20
Added webm sticker output mode to video encoder.

telegramdesktop/tdesktop/public-canary • 181a39f • 7 files, +332/-69
Added adapting video stickers into custom emoji.

Related commit: 9895e5bb89.

#tdesktop
🫡4🤨1
morethanwords/tweb/master • ef41b29 • 183 files, +7649/-4673
Migrate legacy rows to Solid RowTsx

#webk
🫡4
telegramdesktop/tdesktop/dev • 70f4f42 • 1 files, +1/-1
Fixed crash constructing a raced shared Lottie state.

A shared provider is destroyed by the first render() that fails, on the
renderer thread, while SharedState is constructed on a crl::async one -
so _shared could go away between valid() and construct(). Tolerate that
instead of asserting, and treat a missing cover as a failed animation:
the metadata copied at load time no longer describes such a state, and
frameForPaint() would have asserted on its null frame later on.

telegramdesktop/tdesktop/dev • 50efdbc • 1 files, +8/-1
Guard enlarging a group call video with no monitors.

videoEndpointLargeValue() fires on data, not on user input, so it can
reach enlargeVideo() during the interval when the last monitor is gone
and QWidget::screen() is nullptr.

telegramdesktop/tdesktop/dev • 8bcbab7 • 1 files, +5/-1
Show the moved service message in its new topic.

The half beside applyItemRemoved() was missing: the edited item left the
old topic but was never offered to the new one, so its preview and order
in the topic list stayed stale until a reload.

telegramdesktop/tdesktop/dev • 23b6c1b • 1 files, +1/-1
Destroy a removed menu item before its action.

An item reads action() while it is being torn down, so removeAction()
deleting the action first left it pointing at freed memory for the whole
widget destructor. clearActions() and clearLastSeparator() already do it
in this order.

telegramdesktop/tdesktop/dev • 9732805 • 1 files, +1/-1
Don't clear metadata through a null display updater.

init() registers the ButtonPressed handler before it fills in the display
updater, so an E_OUTOFMEMORY in between leaves the token set and the
updater null - and the destructor takes exactly that branch, calling
ClearAll() on a null projected interface at process exit.

telegramdesktop/tdesktop/dev • 7f65351 • 2 files, +12/-4
Destroy the info controller with its content widgets.

createMemento() freed the Controller while _content lived on, and the
content widgets hold it by a raw pointer: MainWidget::showHistory takes
the memento, runs a whole HistoryWidget::showHistory - which reaches
itemVisibilitiesUpdated() and the still-subscribed media list - and only
then destroys the section. The nulling was never a lifetime requirement,
just the "memento already taken" flag showInternal() reads, so make that
a flag and let the controller die with the widget after _content.

telegramdesktop/tdesktop/dev • 4023790 • 1 files, +1/-1
Update lib_ui.

#tdesktop
🫡3
telegramdesktop/tdesktop/dev • ba23d84 • 1 files, +3/-1
Fixed nosound flag dropping animated attribute from sent GIFs.

Regression was introduced in fe7e967258.

telegramdesktop/tdesktop/dev • 3fe5164 • 1 files, +7/-4
Added mp4 conversion for quicktime videos sent as GIFs.

Related commit: fe7e967258.

telegramdesktop/tdesktop/dev • 049b4ad • 2 files, +6/-0
Added getter of automatic clear time to emoji statuses.

telegramdesktop/tdesktop/dev • 2661216 • 8 files, +137/-0
Added emoji status actions to custom emoji context menu.

#tdesktop
🫡4🤝1
UnigramDev/Unigram/develop • f902c66 • 8 files, +52/-1
Toast when adding/removing from a folder

UnigramDev/Unigram/develop • 40f235a • 4 files, +68/-11
Add a solution for the Win32 flavour

UnigramDev/Unigram/develop • 9b3d428 • 6 files, +28/-6
Windows Hello support in Win32 project

UnigramDev/Unigram/develop • e12bb7f • 1 files, +0/-1
Don't clear passcode from session closed handler

UnigramDev/Unigram/develop • b82f6cf • 15 files, +2046/-1868
Reorganize extensions

UnigramDev/Unigram/develop • 708a738 • 1 files, +31/-2
Fix parsing spaces in html paste

UnigramDev/Unigram/develop • 5182e58 • 5 files, +1/-96
Remove dead code from the extension helpers

UnigramDev/Unigram/develop • bd846e9 • 4 files, +46/-108
Collapse duplicated extension overloads

UnigramDev/Unigram/develop • 0d6bfb0 • 1 files, +123/-33
Reset pooled spans and bound the text element pool

UnigramDev/Unigram/develop • 1278bc5 • 1 files, +127/-75
Fix search collection asking for more items forever

UnigramDev/Unigram/develop • 1a078d0 • 57 files, +1413/-284
Replace Rg.DiffUtils with an in-tree diff reader

UnigramDev/Unigram/develop • e949899 • 1 files, +35/-0
Hash the stowed origin trace into the crash group

UnigramDev/Unigram/develop • 88c5aa5 • 2 files, +16/-1
Fix null ref

UnigramDev/Unigram/develop • 99bb3f1 • 64 files, +428/-549
Merge MvxObservableCollection into DiffObservableCollection

UnigramDev/Unigram/develop • d6ecdaa • 2 files, +3/-11
Remove ToTimestampMilliseconds

#unigram
UnigramDev/Unigram/streaming-download-buttons • 6736c6e • 3 files, +73/-0
Track the files a reader is streaming

UnigramDev/Unigram/streaming-download-buttons • bb7a503 • 13 files, +181/-138
Hide a download that only feeds a reader from the file buttons

#unigram
UnigramDev/Unigram/streaming-download-buttons • f8a6759 • 3 files, +73/-0
Track the files a reader is streaming

UnigramDev/Unigram/streaming-download-buttons • 278c0a1 • 13 files, +181/-138
Hide a download that only feeds a reader from the file buttons

#unigram
UnigramDev/Unigram/incremental-loading-terminates • b21d133 • 1 files, +14/-7
Stop the reaction list asking for more items forever

#unigram
UnigramDev/Unigram/video-chat-aliases-itemssource • 5d2aea8 • 1 files, +5/-1
Pass the projected sender vector to VideoChatAliasesPopup

#unigram
morethanwords/tweb/master • 882c48a • 1 files, +10/-0
Fix stale forum avatar unread badge

morethanwords/tweb/master • e934b90 • 3 files, +4/-5
Remove ripple from archive and community rows

morethanwords/tweb/master • 8f6b380 • 9 files, +152/-61
Show forum membership actions

morethanwords/tweb/master • 119c827 • 3 files, +65/-83
Align chat actions plate with translation layout

morethanwords/tweb/master • 1cb8bb8 • 9 files, +513/-203
Use thread separators instead of topic chips

morethanwords/tweb/master • 1d0e373 • 11 files, +218/-64
Pinned message plate: thread-scoped everywhere, no flicker

Opening a forum topic flashed the plate with the channel-wide pin: the initial
hint came from `fullPeer.pinned_msg_id` while the plate's own list is fetched
with `threadId`, so a topic with no pins revealed the plate and hid it again
one task later (and shifted `--pinned-floating-height` with it).

topbar: seed the hint only when there is no threadId; key the staged setup by
peer + thread (on mobile one chat instance is reused across peer changes, so
peerId alone kept the previous topic's plate); pass threadId into the pinned
tab and its title counter; drop the eagerly created throwaway plate
pinnedMessage: clear pinnedMid/pinnedIndex when the list resolves to empty, so
no phantom hint is saved into ChatSavedPosition and re-flashed next open

Pinning while sitting at the end of the chat kept the previous pin with a
bumped counter: the `peer_pinned_messages` anchor was unconditional. Anchor
only while the user is actually walking the pin list (locked /
waitForScrollBottom) and not already at the end of the history.

Rest of the review of the plate:
- forum: unpin-all / hide are thread-scoped too (top_msg_id, thread-keyed
hiddenPinnedMessages, thread-filtered local pFlags.pinned sweep), and both
pin events carry threadId so a change in one topic no longer resets the
plate of every other open topic
- chat: isPinnedMessagesNeeded() dropped the stale `|| isForum`, which put a
plate inside a forum's own pinned-messages tab (and scheduled, and search)
- getPinnedMessage remembers an empty list; testMid mirrors setCorrectIndex's
no-pins guard, so a jump-to-message in a chat without pins stops refetching
- _setPinnedMessage takes a render seq so an older run can't commit over a
newer pin; destroy() cancels the debounce, throttle and leaving-button
timers; the stale dataset.mid is cleared when nothing is pinned
- getCurrentIndexPromise is reset before the trailing testMid/setCorrectIndex
so a fetch they start isn't orphaned
- followPinnedMessage falls back to mids[0] when pinnedMaxMid isn't known yet,
instead of wrapping onto the oldest pin
- setCorrectIndex returns for static (Discussion) plates instead of doing an
elementFromPoint reflow on every throttled scroll

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

#webk
🫡3
morethanwords/tweb/master • cc42eb7 • 1 files, +8/-7
Let the link preview be dismissed back to the reply plate

Quoting a message and then typing a link left the plate stuck on the web page:
neither Escape, nor the cross, nor "Remove preview" could get rid of it.

setTopInfo({type: 'webpage'}) only repaints the plate - helperType stays
'reply' - so onHelperCancel restores the previous helper by calling
helperFunc(). But willSendWebPage was dropped only AFTER that call, and
setTopInfo bails out early on `willSendWebPage && type === 'reply'`, so the
reply was never repainted: the plate kept showing a preview that was already
gone from the state. setCurrentHover got an undefined element along the way,
which also killed the hover menu holding "Remove preview" - hence "stuck".

Drop willSendWebPage before restoring the helper; lastUrl / noWebPage are
still restored afterwards, since setTopInfo's clearHelper resets them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

morethanwords/tweb/master • f30c242 • 3 files, +151/-26
Offer Reopen Topic in the chat actions plate

A closed forum topic gave a manager no way back: the input stayed writable
(canSendToPeer lets canManageTopic through) but reopening was buried in the
chat-list context menu. tdesktop puts a TopicReopenBar right in the bar stack
that already carries the peer-settings actions, so the same plate carries it
here.

dialogsStorage.canReopenTopic(peerId, threadId) composes the two halves of
tdesktop's state - the topic is closed, and we may manage it - into one sync
read, so the UI asks once instead of fetching the topic and then asking about
rights.

actions plate:
- the peer-settings actions and the reopen action are now independent halves
recombined by applyButtons(), which decides the visible list (reopen first)
and the hidden state synchronously - the peer-change path keeps committing
in one go, no flicker
- the close button renders only for the peer-settings half: tdesktop's reopen
bar has no cross, and hidePeerSettingsBar would be meaningless there.
Dismissing now clears only that half, so a still-closed topic keeps its
button
- a lone button with no close beside it spans the plate (is-single) instead of
sitting in the centred pill width that reserves an end slot for the cross
- state follows the topic live: dialogs_multiupdate carries the closed flag
(it arrives as a messageActionTopicEdit service message) and chat_update
covers rights changing under us, which is what tdesktop watches
adminRightsValue for
- gated to ChatType.Chat with a thread on a chat peer, so it can't surface in
the pinned/discussion/saved views

The topic check joins the existing acked getPeerSettings call, and it answers
from worker cache, so the chat-open batch stays uncached-round-trip free.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

#webk
🫡3
morethanwords/tweb/master • 1f060db • 5 files, +342/-93
Page forum topics by server-order offsets, immune to drafts

A topic draft injects its topic into the topic-list folder on startup
('draft_updated' -> getForumTopicById), and the next-page offsets were
derived from the tail of the locally sorted list - so the very first
messages.getForumTopics request could start deep in the list, never
loading everything above the drafted topic, and a mid-list draft punched
a permanent hole below the loaded frontier. Offsets now advance strictly
in the server's response order, per forum (tdesktop's model); only
server search still pages by its own results' tail. Also stop
double-counting server-counted topics in a virtual folder's count.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

morethanwords/tweb/master • 173f3c6 • 1 files, +8/-4
Play the round video while it uploads

12b30e902 stopped an uploading video bubble from autoplaying under the
progress spinner: the autoplay attribute is suppressed while
message.uploadingFileName is set, and playback resumes when the upload
promise settles. Round videos were excluded from both halves, on the
assumption that their is_outgoing handling covers it — but that path
(divRound.onLoad) only wires up the global, with-sound media element.
The looping muted preview inside the circle is the plain inline <video>,
which was left with autoplay=false and paused until the bubble got
re-rendered, i.e. until the chat was reopened. Scrolling away and back
did not help either: animationIntersector only resumes players whose
autoplay is set.

A round video now keeps its autoplay attribute through the upload, as
the official clients do (tdesktop's autoplayEligible only skips a file
that is still 'preparing'), so the circle plays from the moment it is
sent. A regular video would just play under the spinner, so it still
waits — and when its upload completes it now gets the attribute back
instead of a bare play(), so the intersector picks it up again after it
scrolls out of view.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

#webk
🫡3
UnigramDev/Unigram/data-auto-bind-back-guard • cf5b360 • 1 files, +7/-0
Skip the auto-download limit bind-back when there is no view model

#unigram
UnigramDev/Unigram/translate-more-system-messages • 753a746 • 1 files, +5/-0
Translate two more wrong-thread and three more no-interface messages

#unigram
UnigramDev/Unigram/data-auto-bind-back-guard • 8bdd7a2 • 1 files, +4/-2
Say why the bind-back needs the null check

#unigram
morethanwords/tweb/master • d5c66a0 • 9 files, +282/-136
Update tlottie and ship its no-SIMD build

Repin the vendored renderer to dkaraush/tlottie cbfaf4fa, which now builds
the same sources twice - with and without `-C target-feature=simd128`.
Both artifacts are vendored, and lottieLoader hands the scalar one to
browsers that fail IS_WEB_ASSEMBLY_SIMD_SUPPORTED, so stickers stay
animated on Chrome 75-90, Firefox 79-88 and Safari 15-16.3 instead of
freezing on their static thumbnail.

Which build runs is now separate from whether lottie runs at all: apart
from simd128 both need only bulk-memory, sign-extension and non-trapping
float-to-int, so the NO_WASM gates moved to a new probe for exactly those
(the shared validate() guard is factored out of both environment flags).

The vendoring script takes the upstream examples/web directory, verifies
each variant against its own source and stripped-output checksum, and
refuses a binary whose target_features contradict the expected variant.

Both builds render frame-identical output - the test asserts it across
every bundled asset and all six Fitz tones, so the golden hashes are
unchanged by the renderer update.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

#webk
🫡3