Commit Graph

84 Commits

Author SHA1 Message Date
levlam
82f0386e73 Move some functions from misc.h to algorithm.h. 2021-01-01 16:01:03 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
d22dabfdaf Update layer to 121. 2020-11-09 23:41:23 +03:00
levlam
f59a11706c Use unique location for outgoing photos.
GitOrigin-RevId: ac3a0eed1847ee7b96d463758ee33b85c6797ac5
2020-10-22 02:11:32 +03:00
levlam
3c5b09bad7 Hide photo sizes, which can't be downloaded.
GitOrigin-RevId: 420860824f41d5fecbb935c756d9b6f0a2564cb7
2020-10-12 10:31:57 +03:00
levlam
4da9f9d334 Use stable sort for photo sizes to keep "i" the last.
GitOrigin-RevId: 7feab3e73a3a03bc9fd3a0e76e05ab4cbb0f10d2
2020-10-12 10:17:02 +03:00
levlam
1a4a834b2d Add progressive JPEG support.
GitOrigin-RevId: 48c56c3c2575da76df5e9237f6fb043e374bf30d
2020-08-25 15:09:24 +03:00
levlam
23b3eb4931 Update layer to 118. Support message forward count.
GitOrigin-RevId: 10f59fede8b4a86c871949fc721fedd1d615c4bf
2020-07-31 05:50:11 +03:00
levlam
405934676e Change file_id type in as_profile_photo.
GitOrigin-RevId: fe45d895b4781c942512d5c838d99449431440d3
2020-07-20 17:46:54 +03:00
levlam
6b00f2fe6b Update cache after profile photo deletion instead of dropping it.
GitOrigin-RevId: 0bb120eeececb7706016aec01accd4f6194deef4
2020-07-20 17:05:49 +03:00
levlam
8477f329f5 Add chatPhotoInfo.has_animation.
GitOrigin-RevId: d209507fdd59dd154c6acd297c6c7496b6356029
2020-07-08 22:59:31 +03:00
levlam
3fefdb6462 Add td_api::animatedChatPhoto.
GitOrigin-RevId: 430f3b6bcb0bcfaffdcc6f26a4ee017518a64162
2020-07-07 11:41:01 +03:00
levlam
fe01434b3d Add minithumbnail to user profile photo.
GitOrigin-RevId: dbadd36ac8eed84f9f9cdddae3740fab9c494bb9
2020-06-30 12:57:54 +03:00
levlam
0ed26e5321 Improve setProfilePhoto.
GitOrigin-RevId: 9a5ee470c0a38c7989cef642b2f69faa2228baaa
2020-06-28 17:44:56 +03:00
levlam
004e1dcc8d Add userProfilePhoto.animation.
GitOrigin-RevId: 69760b287f8c9bd304db7789e503dda478cf9c59
2020-06-24 14:13:33 +03:00
levlam
a297294aac Update layer to 116.
GitOrigin-RevId: 7c12605195674f0b48dbc05734e99bffb2062d0c
2020-06-24 11:45:36 +03:00
levlam
68dea56632 Use chatPhoto instead of userProfilePhoto.
GitOrigin-RevId: 4027e53be967551620c61a583bfda789a78f9581
2020-07-07 14:19:54 +03:00
levlam
193c7c6293 Rename chatPhotoFullInfo to chatPhoto.
GitOrigin-RevId: f97da057f1f74ccce283d21d1cfdd827bf51c871
2020-07-07 13:48:56 +03:00
levlam
d484baa1ee Rename chatPhoto to chatPhotoInfo.
GitOrigin-RevId: e301571c29719009148353161da483de9902eb8d
2020-07-07 13:00:56 +03:00
levlam
9a92f6d571 Simplify get_photo_object.
GitOrigin-RevId: 08c8fb7fe4eadb4bff56198d5834c708e032979b
2020-07-06 18:45:43 +03:00
levlam
a7bd0c3932 Add photo to *FullInfo.
GitOrigin-RevId: 21346a0880239abe428799fa58b9132abded6f13
2020-07-06 15:26:29 +03:00
levlam
4acf82c506 Add Photo.is_empty().
GitOrigin-RevId: 6dd6aeaaaa703f9cd865598d52b97eb64523fea0
2020-06-23 21:04:26 +03:00
levlam
ef04c17a89 Init photo ID to invalid by default.
GitOrigin-RevId: 072cd8bbd87267e086ed9a280ba5238e5e231a84
2020-06-23 20:50:16 +03:00
levlam
b02b578ab9 Add profile photo to userFullInfo.
GitOrigin-RevId: 8bf6604de32e191a0aa412cab1c00739eb774dd7
2020-06-23 19:40:37 +03:00
levlam
113f3a7080 Add thumbnailFormatGif.
GitOrigin-RevId: 4ad35c83a6ae47d92cbb66cb60622d147f11c7b4
2020-06-01 20:34:48 +03:00
levlam
8d0fa5ce77 Add td_api::thumbnail.
GitOrigin-RevId: b74fa62e415816ce63d3bd4415bd2bb8d6aa3f8b
2020-05-31 22:22:15 +03:00
levlam
4a1e2ee34c Add animated thumbnail support for animations and videos
GitOrigin-RevId: a9026a32be9a9ddf2597c6244e112fd853d81b1f
2020-05-30 01:48:56 +03:00
levlam
d647a2a2e8 Represent photo format as enum PhotoFormat.
GitOrigin-RevId: 9205a8c775111ff394e7c32bc52d343b41e53379
2020-05-11 22:17:49 +03:00
levlam
f2e549e361 Do not dup remotely available files for bots to fix bad FileManager performance.
GitOrigin-RevId: adbd9e3fdfdf249572472bcbccfea030c75a6992
2020-05-03 15:44:33 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
c1a201fd7f Use main remote location for upload.
GitOrigin-RevId: 1a77b73bf73608e219cbf2a0d888f33b0c406a80
2019-11-17 22:41:28 +03:00
levlam
afca63a4f4 Fix minithumbnail dimensions.
GitOrigin-RevId: cd854007a759af2ef7a6ab71c45e5c9ed020d2f5
2019-11-13 23:00:49 +03:00
levlam
68bb65344b Ignore 'i' and 't' photo sizes received from the server.
GitOrigin-RevId: d39854802f545dff99c3dcd7b3a01463b5d3c633
2019-07-20 02:33:49 +03:00
levlam
9a77b26a8a Add PhotoSizeSource.h.
GitOrigin-RevId: 63330f66b3459ecf9b2fdbce4d35faca7542ec3b
2019-06-19 03:18:44 +03:00
levlam
0a380017d4 Remove PhotoSizeSource.type field.
GitOrigin-RevId: ef13086515430194150728f7ede427b6c87ba175
2019-06-18 19:56:59 +03:00
levlam
c38180f014 Move file_type inside PhotoSizeSource::Thumbnail.
GitOrigin-RevId: 0cf016d083bbd39d2a7abf7e2e1c267b4af29e90
2019-06-18 19:45:26 +03:00
levlam
b92223a61c Remove OfflineInputPeer.
GitOrigin-RevId: 1a3706ab5c923ba3dfb065c642e103fd9df688c9
2019-06-18 19:17:31 +03:00
levlam
b9a1ceec05 Remove OfflineInputStickerSet.
GitOrigin-RevId: 144f639f5c22e652a98505856fd4b6327f27deff
2019-06-18 18:59:32 +03:00
levlam
984ccd3d75 Update remote location when source is changed.
GitOrigin-RevId: fc2f41f1f47cc65b5aadbec14a302d8ab2d03d5f
2019-06-18 18:40:46 +03:00
levlam
b1853310fb Better logging.
GitOrigin-RevId: f9f074d0005649fb63e13ccc0352313c9d5415cc
2019-06-17 17:15:08 +03:00
levlam
b75c532f2d Do not trust external documents from secret chats.
GitOrigin-RevId: e0341ce1e2017c6d0b8ac44e18fc9e03de65ccbe
2019-06-17 16:46:20 +03:00
levlam
cf4433dc52 Use get_photo(telegram_api::Photo) whenever possible.
GitOrigin-RevId: 6ab86f8a10f8a80584cd7a4ada4fbbda19df9d96
2019-06-17 02:41:57 +03:00
levlam
e91da22a5b Rename get_photo to get_encrypted_file_photo.
GitOrigin-RevId: 5a9d73b4d3202ed19b646c0bf3fd4ce4d85a9350
2019-06-17 02:05:56 +03:00
levlam
bd13368fa8 Fix chat invite link photo.
GitOrigin-RevId: bf4fa46201598412804880dd3c19d800c93acd5e
2019-06-17 02:00:54 +03:00
levlam
e5f068e47a Minor fixes.
GitOrigin-RevId: 49ed5d6671efa92dec7b09fa8e7863e3665ea355
2019-06-12 16:05:22 +03:00
levlam
3a2bdc5031 PhotoSizeSource fixes.
GitOrigin-RevId: 7e7aa8a0f4a5daf50548f1dc0c4cc8ff7358942d
2019-06-12 14:42:06 +03:00
Arseny Smirnov
e38afe63cc Add PhotoSizeSource into FullRemoteFileLocation
GitOrigin-RevId: ce4e2c6a4dcd62684aa0916ead9c910afd6e932d
2019-06-11 13:10:14 +03:00
levlam
4c781ebb7b Update layer to 98.
GitOrigin-RevId: 7bc09a6ec637f12b2f90bc1fb6d82903feffc376
2019-06-08 12:26:35 +03:00
levlam
df10fcfdd9 Reload sticker sets once to get actual thumbnail.
GitOrigin-RevId: f910afa02095e2f098ca28bb0304a14775e08f93
2019-05-17 18:08:17 +03:00
levlam
85dd77b02c Initial background support.
GitOrigin-RevId: 14d3a1166f837069c55f40036a633295600524ca
2019-05-07 05:51:56 +03:00