Commit Graph

139 Commits

Author SHA1 Message Date
levlam
031864db3e Use dup_photo in dup_story_content. 2024-06-25 00:33:37 +03:00
levlam
c304bb12d6 Add and use dup_photo. 2024-06-25 00:24:11 +03:00
levlam
d963044eb9 Update copyright year. 2024-01-01 03:07:21 +03:00
levlam
bcf9ff7d43 Explicitly include telegram_api.h in cpp files. 2023-07-01 14:53:04 +03:00
levlam
b88312dda1 Add FileType::PhotoStory. 2023-05-25 01:26:26 +03:00
levlam
89c47026e0 Fix compilation error with old compilers. 2023-05-22 16:00:14 +03:00
levlam
fc82657626 Add create_photo function. 2023-05-22 15:35:25 +03:00
levlam
1da3955271 Move Photo merging to merge_photos function. 2023-05-18 17:03:56 +03:00
levlam
e5cb2fa963 Add call_source to register_photo_size. 2023-03-15 00:23:41 +03:00
levlam
e3fac31061 Log photo date. 2023-02-18 23:09:04 +03:00
levlam
61dee568d1 Move get_chat_photo_sticker_object to StickerPhotoSize class. 2023-01-23 11:56:09 +03:00
levlam
0e1537420c Improve video size processing. 2023-01-23 11:51:00 +03:00
levlam
345709f1ff Store StickerPhotoSize in unique_ptr to optimize Photo size. 2023-01-23 00:57:40 +03:00
levlam
425bd0e364 Support sticker chat photos. 2023-01-20 17:31:33 +03:00
levlam
68e939985f Support CustomEmojiSize. 2023-01-18 22:25:25 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
86f0de23f5 Improve message-TTL-related log messages. 2022-12-28 21:59:41 +03:00
levlam
b0446523eb Support sending of media with spoiler. 2022-12-23 18:27:38 +03:00
levlam
5b24e30cf5 Check userProfilePhoto.photo_id. 2022-12-22 22:41:11 +03:00
levlam
a80794ffeb Explicitly call drop_user_full_photos. 2022-12-22 22:38:30 +03:00
levlam
94e678dbc8 Add has_spoiler flag to messagePhoto and messageVideo. 2022-12-20 18:06:21 +03:00
levlam
02db4f2fac Support sending of photos and videos with spoiler animation. 2022-12-15 22:41:55 +03:00
levlam
f941df4ec7 Add profilePhoto.is_personal flag. 2022-12-09 15:52:21 +03:00
levlam
8e7d5f5594 Update layer to 151. 2022-12-08 20:58:37 +03:00
levlam
76c13a21bc Don't drop photo cache if only minithumbnail was changed. 2022-11-05 01:25:19 +03:00
levlam
2a4201f989 Move some functions to Photo.h. 2022-09-22 18:25:20 +03:00
levlam
1e417ea212 Minor fixes. 2022-06-02 16:19:16 +03:00
levlam
3b4b276737 Add chatPhoto.small_animation. 2022-05-30 04:01:55 +03:00
levlam
0909f88bc3 Use int53 for file size in TDLib API. 2022-05-11 17:17:20 +03:00
levlam
014b458425 Add Dimensions.h. 2022-06-02 17:52:12 +03:00
levlam
a90dd653af Avoid logging to error if invalid dimensions were provided by app. 2022-05-26 17:13:31 +03:00
levlam
6a87f0c6ef Avoid updating chat photo minithumbnail to 40x40 full minithumbnail. 2022-04-29 10:50:10 +03:00
levlam
58ff3d5e5d Ignore photo size for fake dialog photo. 2022-04-28 22:29:10 +03:00
levlam
f421cff7f3 Add and use is_same_dialog_photo. 2022-04-28 21:02:44 +03:00
levlam
b6f711044f Add as_dialog_photo. 2022-04-28 20:33:24 +03:00
levlam
9c3675d61b Minor fixes. 2022-04-16 06:01:05 +03:00
levlam
88b9f35b91 Add PhotoSize.h. 2022-04-10 01:15:49 +03:00
levlam
d6bb83dc0e Support WEBM stickers. 2022-01-25 14:58:04 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
e52508bdc1 Add source to PhotoSizeSource::get_type. 2021-11-14 10:47:02 +03:00
levlam
0c1e268706 Don't generate MASK for parsed True fields. 2021-11-01 21:53:23 +03:00
levlam
6f34c5c6a1 Make PhotoSizeSource constructors named. 2021-10-27 16:52:22 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
db18baa503 Unify include order. 2021-09-19 00:47:05 +03:00
levlam
1223c72741 Add class EncryptedFile. 2021-08-01 06:17:51 +03:00
levlam
9664181d48 Improve log messages. 2021-06-27 04:36:06 +03:00
levlam
7e61f9c95c Improve error message. 2021-05-31 20:06:08 +03:00
levlam
4bb76a7b6f Update layer to 128. Remove photo volume_id/local_id. 2021-04-16 17:43:51 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
3786033316 Add minithumbnails to userProfilePhoto and chatPhotoInfo. 2021-04-09 17:01:58 +03:00