Commit Graph

262 Commits

Author SHA1 Message Date
levlam
bc5efb771d Improve can_message_content_have_media_timestamp. 2021-07-26 04:50:08 +03:00
levlam
5d579af30a Return duration of web page in get_message_content_duration. 2021-07-26 04:33:56 +03:00
levlam
e0c9efc26b Skip bot command entities if needed. 2021-07-22 05:39:16 +03:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
levlam
9628668def Minor improvements. 2021-06-23 03:22:23 +03:00
levlam
9440925711 Move some classes inside corresponding managers. 2021-06-18 03:06:20 +03:00
levlam
a04a481fd4 Remove unused variable. 2021-06-10 02:42:30 +03:00
levlam
d80b613b55 Remove support for secret chat layers before 73. 2021-06-08 18:31:29 +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
6b0637f402 Disallow messageInvoice copying. 2021-04-13 17:40:09 +03:00
levlam
7dbe720fdc Move can_send_message_content to MessageContent.cpp. 2021-04-13 02:59:33 +03:00
levlam
47a7bc05e2 Use service messages to synchronize active group call state. 2021-04-11 05:37:53 +03:00
levlam
969b52cc82 Minor improvements. 2021-04-09 02:35:50 +03:00
levlam
fbb15a9925 Remove invoice_chat_id/invoice_message_id from messagePaymentSuccessfulBot, because they are incompatible with inline mode. 2021-04-07 22:58:40 +03:00
levlam
bb1b82731e Add messageVoiceChatScheduled. 2021-04-06 00:24:05 +03:00
levlam
3f1e91e7f4 Support invoice receipts in another chats. 2021-03-31 15:36:25 +03:00
levlam
32a5fc6855 Support sending messageInvoice via inline mode. 2021-03-31 02:38:16 +03:00
levlam
d7afe3d3e2 Simplify variable names in create_inline_message_content. 2021-03-31 02:02:53 +03:00
levlam
2379735d9b Support sending Invoice as result of any inline query. 2021-03-31 01:55:12 +03:00
levlam
b9bc86fb5a Add class InputInvoice. 2021-03-31 01:20:40 +03:00
levlam
c3ff8539db Support tip amount in Invoice. 2021-03-30 18:05:20 +03:00
levlam
26dc0ad930 Update layer to 127. 2021-03-26 18:15:21 +03:00
levlam
268dd2cf12 Increase MessageUnsupported version. 2021-04-06 00:40:31 +03:00
levlam
8039660cfe Reload objects from server if failed to resolve their dependencies. 2021-04-04 03:23:22 +03:00
levlam
1bbcc01091 Fix MessagePaymentSuccessful storing. 2021-04-02 17:04:51 +03:00
levlam
b5655ddab6 Pass UserId to Contact::Contact. 2021-03-29 08:20:54 +03:00
levlam
c733f8ed34 Minor improvements. 2021-02-25 15:56:26 +03:00
levlam
f92339de85 Support telegram_api::messageActionSetMessagesTTL. 2021-02-16 15:15:45 +03:00
levlam
15fe7f7a04 Rename suggested_name to suggested_path. 2021-01-26 02:39:48 +03:00
levlam
f307200ddc Support attachment upload in importMessages. 2021-01-22 17:09:08 +03:00
levlam
6e20aaa428 Add source to get_dimensions. 2021-01-23 22:04:35 +03:00
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
865009fffc Include improvements. 2021-01-01 01:52:01 +03:00
levlam
bbde4f32c6 Allow to specify emoji for sent stickers. 2020-12-19 14:31:42 +03:00
levlam
4b9eabc668 Separate message contents for started and ended boice chats. 2020-12-14 22:22:20 +03:00
levlam
6fdf68bad4 Store DialogId in information about group call. 2020-12-13 14:52:07 +03:00
levlam
52c79bae75 Update documentation and improve type names. 2020-12-09 14:26:22 +03:00
levlam
6e3e129b13 Improve group call method and field names. 2020-12-08 18:01:06 +03:00
levlam
eb9abbb9ab Save voice chat channel_id. 2020-12-04 12:40:51 +03:00
levlam
34e05375c1 Add GroupCallId class. 2020-12-03 19:52:50 +03:00
levlam
7f9681313a Update layer 122. 2020-11-29 15:41:03 +03:00
levlam
cc47f9b63f Support updateGroupCall. 2020-11-25 17:04:32 +03:00
levlam
3c9cd41776 Add GroupCallId. 2020-11-24 17:29:09 +03:00
levlam
ce4054c5d4 Add messageGroupCall and messageInviteToGroupCall. 2020-11-24 14:33:16 +03:00
levlam
d22dabfdaf Update layer to 121. 2020-11-09 23:41:23 +03:00
levlam
c1de6a7d8d Minor improvements.
GitOrigin-RevId: eb8b201d80405feb6972b2eabc7de30d40aa8b81
2020-11-02 00:43:57 +03:00
levlam
1fcd6b54ed Improve messageProximityAlertTriggered field names.
GitOrigin-RevId: b67708794a18ee954455871cce1084ca047f7f35
2020-10-31 01:38:11 +03:00
levlam
6f4c4adcc8 Improve field names.
GitOrigin-RevId: ded67301be27af1f3b7c8f7e11b2172bb92934c7
2020-10-30 15:51:20 +03:00
levlam
86c80e652e Improve field names.
GitOrigin-RevId: 3c30190dc75bd5dc812078f33bbf9dcaaeba1a1a
2020-10-29 22:25:58 +03:00
levlam
38fe050dba Update layer 120. New live location approaching API.
GitOrigin-RevId: 98e984a3c84deee3552eb01b53963a6a998c7eda
2020-10-25 00:49:41 +03:00
levlam
de1e5e0bd4 Add new message content type MessageLiveLocationApproached.
GitOrigin-RevId: 6bf5ac6b3320d0b6da9c27bf5258105ccd958396
2020-10-19 20:44:09 +03:00
levlam
827ceb3ee5 Add audio, video and video note without duration to shared media.
GitOrigin-RevId: 924a2b8654e1d118b26c6174af3c0ebd327d454f
2020-10-19 14:31:18 +03:00
levlam
9558b06021 Add location horizontal accuracy support.
GitOrigin-RevId: bafb7f7ff115eeede17be4bb1610045b5e3e78c9
2020-10-17 22:47:47 +03:00
levlam
6e3eda2aa1 Add live location heading support.
GitOrigin-RevId: 67a1bdad91e82f6e7509f4df8c7f66a00e44ab83
2020-10-16 23:08:28 +03:00
levlam
fd9732dcfa Add slot machine support.
GitOrigin-RevId: e0c3c5d9b2cff2870162f11983bd546aba101caf
2020-10-15 15:59:51 +03:00
levlam
f59a11706c Use unique location for outgoing photos.
GitOrigin-RevId: ac3a0eed1847ee7b96d463758ee33b85c6797ac5
2020-10-22 02:11:32 +03:00
levlam
143a4961b6 Improve inputMessageDocument.disable_content_type_detection field name.
GitOrigin-RevId: b2155f743635437e11d4c346bad641427cb737fa
2020-09-14 15:40:34 +03:00
levlam
1a4a834b2d Add progressive JPEG support.
GitOrigin-RevId: 48c56c3c2575da76df5e9237f6fb043e374bf30d
2020-08-25 15:09:24 +03:00
levlam
1c6f778e8d Fix message handling during logging out.
GitOrigin-RevId: 6542058eb0fcec8e2693db5f5f8abf725c4d4ed7
2020-08-24 13:43:54 +03:00
levlam
46f42d80b6 Move MessageSearchFilter to separate files.
GitOrigin-RevId: 07b7df009b4e74a145b5ebc1966190630545baef
2020-08-22 10:27:13 +03:00
levlam
7d6546b27a Rename SearchMessagesFilter to MessageSearchFilter.
GitOrigin-RevId: ac477d22eae9382c6e9d63e184f10490c1bf4292
2020-08-22 10:05:51 +03:00
levlam
8fb53c6ec2 Allow to replace caption when message is copied.
GitOrigin-RevId: 6e190830d66916de2deb0b371185b7db6ea42b00
2020-08-11 10:35:19 +03:00
levlam
a404948707 Add MessageCopyOptions.
GitOrigin-RevId: a61b93c3c215c42c9a7f30195cc637187472751e
2020-08-09 14:18:08 +03:00
levlam
95ac56215b Add call.is_video flags to td_api.
GitOrigin-RevId: cba87e4aeeb32ac177dd69416592193056c2f8b1
2020-08-05 22:10:33 +03:00
levlam
e7ebc22929 Remove FE0F from MessageDice emoji.
GitOrigin-RevId: b0eab642499ade40a17d9f5f475c73c7de71724e
2020-07-21 01:35:35 +03:00
levlam
3fefdb6462 Add td_api::animatedChatPhoto.
GitOrigin-RevId: 430f3b6bcb0bcfaffdcc6f26a4ee017518a64162
2020-07-07 11:41:01 +03:00
levlam
004e1dcc8d Add userProfilePhoto.animation.
GitOrigin-RevId: 69760b287f8c9bd304db7789e503dda478cf9c59
2020-06-24 14:13:33 +03:00
levlam
193c7c6293 Rename chatPhotoFullInfo to chatPhoto.
GitOrigin-RevId: f97da057f1f74ccce283d21d1cfdd827bf51c871
2020-07-07 13:48:56 +03:00
levlam
9a92f6d571 Simplify get_photo_object.
GitOrigin-RevId: 08c8fb7fe4eadb4bff56198d5834c708e032979b
2020-07-06 18:45:43 +03:00
levlam
c56f2a8c1d Use chatPhotoFullInfo where appropriate.
GitOrigin-RevId: ffde532a24735ddac2536a448100ac8884adba83
2020-07-06 15:34:07 +03:00
levlam
a7bd0c3932 Add photo to *FullInfo.
GitOrigin-RevId: 21346a0880239abe428799fa58b9132abded6f13
2020-07-06 15:26:29 +03:00
levlam
c865f6a42e Increase poll question length limit for bots to 300.
GitOrigin-RevId: 9ab822c385923e1a46642ad6dfffb97697f68a8b
2020-07-04 02:19:38 +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
d5b4c57993 Add inputMessageDocument.force_file.
GitOrigin-RevId: 7f2780ba7f333e5f8df9c28bab429b8b12eaf26c
2020-06-22 02:02:21 +03:00
levlam
8d0fa5ce77 Add td_api::thumbnail.
GitOrigin-RevId: b74fa62e415816ce63d3bd4415bd2bb8d6aa3f8b
2020-05-31 22:22:15 +03:00
levlam
f301359deb Do not animate unknown stickers before they are sent.
GitOrigin-RevId: 333cca74ec642ede27c4d2f5fc5794eb776990a3
2020-05-31 01:33:14 +03:00
levlam
4a1e2ee34c Add animated thumbnail support for animations and videos
GitOrigin-RevId: a9026a32be9a9ddf2597c6244e112fd853d81b1f
2020-05-30 01:48:56 +03:00
levlam
e8cb1dfeb5 Support stickers attached to animation.
GitOrigin-RevId: 3e2464146410fbc68b51721b10327f1ac92cbb66
2020-05-29 11:51:51 +03:00
levlam
3d8ff7f852 Update layer to 114.
GitOrigin-RevId: 8cfc80aa94c507de56d068472e152fb8aa0ab8a9
2020-05-29 11:26:08 +03:00
levlam
4c80155092 Improve spelling.
GitOrigin-RevId: 73edc0a7a57f40c404b4b5c8d00e9b20127f9abc
2020-05-18 22:54:18 +03:00
levlam
2a92f4cf6b Add support for basketball dice emoji.
GitOrigin-RevId: 14ee79e80310d468f7acbb6693b56379c76b3bd2
2020-05-17 01:28:56 +03:00
levlam
5fe9d5feee Fix forwarding as copy of photos to a lot of chats simultaneously.
GitOrigin-RevId: 27edf34c58447a9c2bfd9e1a2679f69b0e05c076
2020-05-07 15:43:53 +03:00
levlam
e9118c7bd5 Improve logging.
GitOrigin-RevId: 4d0cf9d0c6bc1fb1db353e2bc4ea8b7149ef7903
2020-05-07 01:50:47 +03:00
levlam
9ade35d9ba Do not allow sticker set name in decryptedMessageMediaDocument.
GitOrigin-RevId: bf82ae795b24e265aab815e8a47ca20ece894a21
2020-05-05 19:41:01 +03:00
levlam
5e02099069 Improve logging.
GitOrigin-RevId: ea4019e25d2e9413c5eed2d5dde5a7c9b58e1d1a
2020-05-05 00:37:27 +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
851d23f06c Add messageDice.success_animation_frame_number.
GitOrigin-RevId: d0afff34c7d74fe5e06b008b7a8438be4aebe88b
2020-04-21 19:08:01 +03:00
levlam
8109988247 Add messageDice.need_success_animation.
GitOrigin-RevId: 1c308f71d628d896321ce331c634a6868f504bc0
2020-04-21 14:51:46 +03:00
levlam
35e421a23d Do not apply expired message content early.
GitOrigin-RevId: e49ba509e615a0f088b5aba7f03d722248ae9af0
2020-04-21 01:39:44 +03:00
levlam
84ecb75f5d Automatically load dice stickers.
GitOrigin-RevId: cc5478256fdfa9d898f54b8a372437e0ad2a2c34
2020-04-20 00:41:26 +03:00
levlam
d27bf642eb Add MessageDice::is_valid().
GitOrigin-RevId: 924ffa6d43cda4b32994f22b2300cf0f79ab7458
2020-04-19 09:47:37 +03:00
levlam
4a5320e2e5 Partial support of new MessageDice.
GitOrigin-RevId: 075d457a264bb00d28194e80b709205711b32c69
2020-04-18 08:45:41 +03:00
levlam
3bcf9ad301 Update layer 112.
GitOrigin-RevId: 9d2b213ecf8a60ffa9af17512c026ee0c71730b6
2020-04-16 21:46:58 +03:00
levlam
4905a851f0 Add clear_draft parameter to inputMessageDice.
GitOrigin-RevId: 2ff67cf4fe198241f7713103f46d7d724d51e591
2020-04-13 14:18:46 +03:00
levlam
b4efcc6697 Pass correct dialog_id.
GitOrigin-RevId: 0e81418d9ef01cc90f5550f42fe8ec26a1455c16
2020-04-04 01:13:59 +03:00
levlam
fda0fc0adc Improve Poll.open_period field name.
GitOrigin-RevId: 733b05bbb08cece27ddba88875e9a8493e974081
2020-04-04 00:05:35 +03:00