fix: sync latest telesrv fixes

This commit is contained in:
A 2026-07-04 01:14:47 +08:00
parent b7269b135f
commit b1f74185f0
11 changed files with 203 additions and 72 deletions

View file

@ -50,13 +50,13 @@ func TestUploadGetFileRejectsInvalidRanges(t *testing.T) {
func TestFileLocationKeyUsesDocumentID(t *testing.T) {
key, ok := fileLocationKey(&tg.InputDocumentFileLocation{
ID: 1382305375846410902,
ID: 5382305375846410902,
ThumbSize: "m",
})
if !ok {
t.Fatal("fileLocationKey returned !ok")
}
const want = "doc:1382305375846410902:m"
const want = "doc:5382305375846410902:m"
if key != want {
t.Fatalf("key = %q, want %q", key, want)
}