Commit Graph

118 Commits

Author SHA1 Message Date
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
levlam
4e7cd24285 Add support for quiz explanation.
GitOrigin-RevId: ab4346fe3abe5c5abd7234d5b4b3937e995494af
2020-04-03 23:39:50 +03:00
levlam
bb75ea35da Update layer to 112.
GitOrigin-RevId: 9d18b24ce8aeb86624a61c04e55ca5b4a42634ce
2020-04-03 16:50:10 +03:00
levlam
a599557c9d Support some updates before authorization.
GitOrigin-RevId: 21bd7a06bf41ebc81005b35a0695988d82e6b4a3
2020-03-30 01:48:44 +03:00
levlam
12a6bc9c04 Rename Die to Dice.
GitOrigin-RevId: 16b7b2915163103891d9813e034762fb6a8f6bff
2020-03-30 00:34:37 +03:00
levlam
e1ff669682 Add support for die messages.
GitOrigin-RevId: 2ce7260b01ebe12599831df785ec6d777ddbd10e
2020-03-14 19:56:39 +03:00
levlam
b89034d78b Fix disable_web_page_preview flag of copied messages.
GitOrigin-RevId: 7b4c01436ab4bb8375307e57dd7b702cea5c289f
2020-03-28 02:35:07 +03:00
levlam
8e666c2d7a Add has_message_content_web_page.
GitOrigin-RevId: 3bc382c77754a6a517616235d7b2572cfdfda607
2020-03-28 01:49:59 +03:00
levlam
92df8f9827 Remove unneeded brackets.
GitOrigin-RevId: 0b8a2ae21d28e6c276db8b45ffb4d127800f5d73
2020-02-26 18:15:19 +03:00
levlam
4cb43a2786 Add support for entities in captions of incoming secret chat messages.
GitOrigin-RevId: 126de54c7b346431fc901a953fcc72f3bc88985c
2020-02-25 00:30:47 +03:00
levlam
182caecccc Simplify get_message_content/get_secret_message_content implementation.
GitOrigin-RevId: 833a59386271a665050c57b5737a12bd2e336f97
2020-02-25 00:06:29 +03:00
levlam
04a002d9f3 Add source to register_message_content.
GitOrigin-RevId: 035429321a0fa15ea8918c634b19f12c21fc1d61
2020-02-22 19:21:58 +03:00
levlam
8539d43951 Silence warning about wrong message entities for messages from albums.
GitOrigin-RevId: 13a60e258ab6aae8c80d5ea4cd8bb7037f56985c
2020-01-29 02:05:12 +03:00
levlam
c07225c371 Add MessageContentType.cpp/h.
GitOrigin-RevId: 3e9390cea6b566980f7d2d8a7d5efa9b81ec2434
2020-01-27 16:06:00 +03:00
levlam
4293e4bec1 Fix some includes.
GitOrigin-RevId: 760f9d7e09881bfc061a78118008cf7fdf4660f4
2020-01-27 04:54:01 +03:00
levlam
4a1125887a Move update_used_hashtags to MessageContent.cpp.
GitOrigin-RevId: 67b8a3defbc9f2249dff0d57a40bd42ec743cd39
2020-01-27 03:34:23 +03:00
levlam
e666d10c8d Do not include TopDialogManager in MessagesManager.
GitOrigin-RevId: 364ebfc86bc49d8b64a60a82a3383210531774c3
2020-01-27 03:25:23 +03:00
levlam
129f96da69 Send updateMessageContent when WebPage is changed.
GitOrigin-RevId: 8e20fd788a4f5333f686d96241459774319ac8d7
2020-01-27 02:55:18 +03:00
levlam
f2a4d70865 Register scheduled message contents.
GitOrigin-RevId: 1942ff1c3976ee24969d1c25a94fb89639ffa906
2020-01-25 04:00:43 +03:00
levlam
67e4871ea0 Add reregister_message_content.
GitOrigin-RevId: 53c250a8e805dba37dc4ee255472935762ee609a
2020-01-25 03:50:23 +03:00
levlam
d2763fdd58 Ignore inputMessagePoll.is_closed for non-bots.
GitOrigin-RevId: a83389a7ea330c53e4c578a0d21701f0550844b7
2020-01-23 03:53:58 +03:00
levlam
32b3a75676 Allow bots to send closed polls.
GitOrigin-RevId: 9ba80686140dd2a9d909a9f7add53a8cd69bea90
2020-01-21 18:09:15 +03:00
levlam
8350443093 Add limit to getPollVoters.
GitOrigin-RevId: 7f782124e111680b3b726685d6633e79f3d3b60f
2020-01-18 07:01:05 +03:00
levlam
cde26abe1e Add and use can_have_input_media function.
GitOrigin-RevId: f40cb99154f6429f071dc9785f94a62322ef123e
2020-01-16 06:10:08 +03:00
levlam
4ec628fc78 Add Game::has_input_media.
GitOrigin-RevId: 13be31df3a93d495628f64d7cedc767a6e030a68
2020-01-16 05:18:06 +03:00
levlam
fb215a0287 Fix quiz copying.
GitOrigin-RevId: f92b11f5327b7f6f67cb7e67ea7ee282a5f5cb23
2020-01-15 05:42:10 +03:00
levlam
7ffd9ad7c9 Move checks for Game message content in dup_message_content.
GitOrigin-RevId: e9d5ad1216c5178b4990b4f17bc5c808cd70cb6f
2020-01-15 02:44:24 +03:00
levlam
ebaea15679 Introduce MessageContentDupType.
GitOrigin-RevId: 06e0728b6853f0c7ec065a1b5eba8e448a8e9835
2020-01-15 02:11:26 +03:00
levlam
4e22f29c53 Add td_api::getPollVoters.
GitOrigin-RevId: 47ad78287433a2efb9b66f18a960e4de6060842a
2020-01-13 21:21:58 +03:00
levlam
f2211527db Add support for recent poll voters.
GitOrigin-RevId: f4260d87ae4a22d56b2024c07713ceeb37203895
2020-01-12 04:40:17 +03:00
levlam
a7501e1582 Update layer to 109. Add new poll types.
GitOrigin-RevId: cc82f1bfdf1d4cd906212009f2dc8d84e0cb543a
2020-01-11 03:46:26 +03:00
levlam
8a1d035d1a Fix check of poll question and answers length.
GitOrigin-RevId: 4b9f75b8ca58f609d07f0aa73370bc893d3bc120
2020-01-06 00:32:26 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
82c55c51a0 Better warning condition for changed message entities.
GitOrigin-RevId: 481d50debb7e41e132d6fdc17bb7d6370d17fc16
2019-12-25 20:17:17 +03:00
levlam
6b24886bf0 Partial support for scheduled message IDs.
GitOrigin-RevId: 752336efc26fb73a038801b99b490d0f68163b04
2019-11-26 23:47:13 +03:00
levlam
099e767b6b Add ServerMessageId.h.
GitOrigin-RevId: f71d1f41f84c2263890875271f47f938e792aa55
2019-11-26 19:33:18 +03:00
levlam
1e018da7b8 Various fixes.
GitOrigin-RevId: b09e5fda6d25bd027f6bcbcbbe8324567b8ddcf8
2019-10-22 20:01:15 +03:00
levlam
918f6a0cfd Use td::contains and td::remove instead of std::find if possible.
GitOrigin-RevId: faa0863eb49ee8ce4c2138dfec022620f71d2f6a
2019-10-22 02:12:58 +03:00
levlam
0d72fd638e Add Venue.{cpp,h}.
GitOrigin-RevId: 19dd4da6d4792ecbb84fdba560e49affcfcf5bed
2019-10-13 02:39:44 +03:00
levlam
408a456589 Add strongly typed StickerSetId.
GitOrigin-RevId: 518121f89e3a4c95ab5a2095a9bc2217090911de
2019-09-18 06:55:43 +03:00
levlam
15f31cf23a Add storer and parser for unique_ptr.
GitOrigin-RevId: 2b0f5c8a3e9f7a9343cf9557d10cbf95009ba847
2019-09-18 02:42:38 +03:00
levlam
c1a201fd7f Use main remote location for upload.
GitOrigin-RevId: 1a77b73bf73608e219cbf2a0d888f33b0c406a80
2019-11-17 22:41:28 +03:00
levlam
35bf5e2f32 Add more logging.
GitOrigin-RevId: 4e84e89517d3e28911f8d876fe3ccc6ef741c4f5
2019-11-17 01:43:47 +03:00
levlam
c91efe472b Add force to another overload of get_input_media.
GitOrigin-RevId: fc64a9f6ee08e5432c6475f8b1493bcd2524ae4f
2019-10-09 02:59:25 +03:00
levlam
8dbd3bf091 Consider links in captions for Shared URLS.
GitOrigin-RevId: f39f78d64b7d2e64b7b2682f688accbabce2a907
2019-09-08 02:05:55 +03:00