Commit Graph

476 Commits

Author SHA1 Message Date
levlam
54308a86fe Replace blockUser and unblockUser with toggleChatIsBlocked.
GitOrigin-RevId: 454542b32a7b8efc487afed54c59ae3864ea138e
2020-09-20 03:00:01 +03:00
levlam
bda5a3c5bd Allow sending chat actions inside message thread.
GitOrigin-RevId: 6ad0b659f957013fa493386ad808eb6767399253
2020-09-18 19:42:31 +03:00
levlam
1da8d859c9 Add for_group and for_comment in getMessageLink.
GitOrigin-RevId: 1ca027280f9e1013a1ad0ba20ed54ffbbcad2bb6
2020-09-17 16:47:27 +03:00
levlam
cd6cfc52ac Add td_api::getDiscussionMessage.
GitOrigin-RevId: 5adf174ae08f0cf3c430ea0222f818a54988823f
2020-09-15 17:07:34 +03:00
levlam
2cca74bf80 Use messages.getReplies when appropriate.
GitOrigin-RevId: cba140893d0b5d4c6d2b7f4c364947019b9e85d2
2020-09-15 02:42:59 +03:00
levlam
bc000b5a53 Add OptionParser::parse_string helper.
GitOrigin-RevId: 506b1d9c1b6cfb6029bb87e32a98f08b0d16b2d4
2020-09-14 14:51:52 +03:00
levlam
1cd9f5d8c9 Support generating of public links for comment messages.
GitOrigin-RevId: 68d9a0260e60719f129e05d32fcbf756e93fa5d4
2020-09-14 01:12:24 +03:00
levlam
c7a9e5980c tg_cli: support custom message ID separators in deleteMessages.
GitOrigin-RevId: f070685d2fee167e3679d57e84d70fff1f682f72
2020-09-13 01:31:08 +03:00
levlam
85be738d9d Support automatic forward of media albums as albums.
GitOrigin-RevId: cb1f6446eef0b49f944491d07e2d44fb67a2a1c8
2020-09-12 20:50:16 +03:00
levlam
7df0c5084a Fix updateShortMessage handling.
GitOrigin-RevId: 35c667af5646654ed9f8495774043adb10b12faf
2020-09-11 17:51:01 +03:00
levlam
01f3eecd85 Add support for is_anonymous administrator right.
GitOrigin-RevId: d0d46d961aebcc67275bb09ec883f6feaa465c63
2020-09-11 01:49:15 +03:00
levlam
fdc3920572 Fix some includes.
GitOrigin-RevId: 4b57613cc6e948ceb7d63b4378bc9124271e0f53
2020-10-08 18:30:36 +03:00
levlam
0540ae7b60 Add min_date/max_date to searchMessages.
GitOrigin-RevId: a340969e431dd2de018461f3904da6569a91b166
2020-09-08 14:58:02 +03:00
levlam
1a6ca88777 Support search within message thread.
GitOrigin-RevId: 8ea2ac97000527d743b5a983eed57c3dd206b76c
2020-09-08 14:17:56 +03:00
Andrea Cavalli
cd2b97aac2 Fix windows build 2020-09-05 17:33:01 +02:00
Andrea Cavalli
2ee1930f65 Replaced checks abort() with death handlers 2020-09-02 01:11:38 +02:00
Andrea Cavalli
5f188a293a Update Client.cpp and cli.cpp 2020-09-01 22:52:32 +02:00
Andrea Cavalli
5a2ee4d91b Added death handler 2020-09-01 21:32:58 +02:00
levlam
1843e92961 Add td_api::getPhoneNumberInfo.
GitOrigin-RevId: bba065e87cf5d68026d7408c2a34770f6e4f931d
2020-08-25 13:42:14 +03:00
levlam
3860953251 Add td_api::getCountries.
GitOrigin-RevId: 1c70e6e267b9582afe50014ffc9d1ef81a33f123
2020-08-24 23:38:45 +03:00
levlam
552a0550c2 Add two new call problems.
GitOrigin-RevId: 036e7b52be8daa114fa919f560410b5edb09b461
2020-08-21 20:53:39 +03:00
levlam
fcd1cda312 Add filter support to searchMessages.
GitOrigin-RevId: 571b0ee894296c1e8c947939f7098a1566731461
2020-08-21 17:40:05 +03:00
levlam
f9c0ddae06 Add getMessagePublicForwards method.
GitOrigin-RevId: a0b16c241bcf3276c245423f7fff3f41751883b6
2020-08-21 14:47:43 +03:00
Andrea Cavalli
8c0ce47f61 Merge commit '3a626f6df2003e4cd834477de65dc900f074adda' 2020-08-20 15:31:08 +02:00
levlam
afc1d789de Fix chat photo deletion.
GitOrigin-RevId: c332a9580fbe5b9c8cd670a848f27c1eab05f126
2020-08-18 21:55:38 +03:00
levlam
605e0844fb Use string new_offset in FoundMessages.
GitOrigin-RevId: b0d013e7d2513cc39f1c07013c837e6adb7e924a
2020-08-18 15:10:03 +03:00
Andrea Cavalli
1ccc7c6c65 Merge commit '3282a873cb24b0c975b6929aeb71a00fc6a18b7c'
Conflicts:
	sqlite/sqlite/sqlite3.c
	sqlite/sqlite/sqlite3.h
	sqlite/sqlite/sqlite3ext.h
	sqlite/sqlite/sqlite3session.h
	tddb/td/db/SqliteDb.cpp
2020-08-18 13:55:47 +02:00
levlam
3c83aae127 Add CallbackWithPassword buttons support.
GitOrigin-RevId: 99e79f8975d50a9a87183dd78f2641711bbad28d
2020-08-18 09:32:37 +03:00
levlam
62b0582bec Update layer to 117. Support WebRTC call servers.
GitOrigin-RevId: 0db2aa89165760b8588a4ebd1c7cb77451e7c6d6
2020-08-10 18:37:03 +03:00
levlam
8fb53c6ec2 Allow to replace caption when message is copied.
GitOrigin-RevId: 6e190830d66916de2deb0b371185b7db6ea42b00
2020-08-11 10:35:19 +03:00
levlam
301d0577ba Add td_api::sendCallSignalingData.
GitOrigin-RevId: d14899cd97fb46d472bcb48fd4b51f568e995608
2020-08-10 11:34:28 +03:00
levlam
16c02c6b25 Rename sendMessageOptions to messageSendOptions.
GitOrigin-RevId: 70270e56ad61e21ad22f207adce6c27c2873f374
2020-08-09 15:14:30 +03:00
levlam
a404948707 Add MessageCopyOptions.
GitOrigin-RevId: a61b93c3c215c42c9a7f30195cc637187472751e
2020-08-09 14:18:08 +03:00
levlam
3fb0bdff15 tg_cli: fix OpenSSL initialization.
GitOrigin-RevId: 388f70155c7f3a1f5276886c1cb38131dd302adc
2020-08-08 21:56:34 +03:00
levlam
95ac56215b Add call.is_video flags to td_api.
GitOrigin-RevId: cba87e4aeeb32ac177dd69416592193056c2f8b1
2020-08-05 22:10:33 +03:00
90e1001a5f Merge commit '1b628d3ab7be515c8c6a916e7e955403fbc07b2a' 2020-08-05 11:34:15 +02:00
levlam
0ac58f7494 Fix some includes.
GitOrigin-RevId: 5ce2e3dd3172ff92fa9400d10f0c6ec4b7f46e6e
2020-08-01 21:57:03 +03:00
levlam
53ca6e4f4a Add td_api::getMessageStatistics.
GitOrigin-RevId: f5d32ef829b91aa1fea59ea88b665fe39d32642c
2020-08-01 05:19:54 +03:00
ee676d0a52 Update WebPagesManager.cpp and cli.cpp 2020-08-01 01:00:01 +02:00
f1bf08c1e6 Update ContactsManager.cpp, WebPagesManager.cpp, and cli.cpp 2020-07-31 23:54:01 +02:00
Arseny Smirnov
cacabaf6d1 NetQueryStats
GitOrigin-RevId: 5a04b322e12e2838b1d7f812fcf06bff4eefbace
2020-07-30 17:28:56 +03:00
cc087aeacd Merge commit 'ab5d35371b1fdcfb30dfa981ede54ec83db214a9'
Conflicts:
	sqlite/CMakeLists.txt
	td/telegram/ContactsManager.cpp
	td/telegram/Photo.cpp
	td/telegram/Td.cpp
	td/telegram/WebPagesManager.cpp
	td/telegram/files/FileManager.h
2020-07-29 16:39:33 +02:00
levlam
db628a8c9e Increase mas file size limit.
GitOrigin-RevId: d10bb8abe7c70a2c94b0edc6f6d1fb08e49c7267
2020-07-23 01:59:28 +03:00
levlam
2e82c65d94 Add hideSuggestedAction method.
GitOrigin-RevId: 11b162f37ab09c77bedae35157fc0870b2110795
2020-07-12 15:04:49 +03:00
886a40118e Merge commit 'f45d80fe16f99d112d545b7cd74ce46342fe3437' 2020-07-09 00:10:53 +02:00
levlam
6476e05d1e Change input photo type to InputChatPhoto in setChatPhoto.
GitOrigin-RevId: fae612a07ffdf71f393ffea7951a76808b90f7b3
2020-07-08 19:40:23 +03:00
levlam
c1b88e2cc1 Allow to specify main_frame_timestamp when setting up animated profile photo.
GitOrigin-RevId: 8e5229642cdf5a454f932c0b201497f019344eab
2020-07-07 20:56:54 +03:00
levlam
0ed26e5321 Improve setProfilePhoto.
GitOrigin-RevId: 9a5ee470c0a38c7989cef642b2f69faa2228baaa
2020-06-28 17:44:56 +03:00
levlam
8872fbf6ac Fix tdutils after merge.
GitOrigin-RevId: 5b9a863e405a9e3782157570156fda71bf2bb589
2020-06-26 02:24:13 +03:00
levlam
f6b4ced7bb Improve some variable names.
GitOrigin-RevId: b399b6fc1150aced96a41a75797d88e2df627415
2020-06-24 14:33:20 +03:00
levlam
d5b4c57993 Add inputMessageDocument.force_file.
GitOrigin-RevId: 7f2780ba7f333e5f8df9c28bab429b8b12eaf26c
2020-06-22 02:02:21 +03:00
levlam
47229e1dab Add expected_non_option_count to OptionParser.
GitOrigin-RevId: 41bf15d9bddf1673c0c421ef9e5108a5678f9842
2020-06-19 06:00:01 +03:00
levlam
251318d2da Add OptionParser::add_check.
GitOrigin-RevId: dbf50403ba264ddf04b50197f0b54500c8f761ce
2020-06-19 05:50:18 +03:00
levlam
5aa609535e Simplify support for unchecked options in OptionParser.
GitOrigin-RevId: 5a913944b5a6cfecdfb96287e2c670be8ca18547
2020-06-19 04:44:38 +03:00
levlam
0877d7f716 Automatically detect operating system version.
GitOrigin-RevId: d693799fdbfe4919da5a70c141709f2db93063d7
2020-06-19 03:45:24 +03:00
levlam
4f8fd1781d Prettify OptionParser usage printing.
GitOrigin-RevId: f0b7c833e91d9eea49483bb93124babc190fa670
2020-06-17 06:09:53 +03:00
levlam
ce137620f5 Improve logging to PLAIN.
GitOrigin-RevId: 5fd64a3599e599a7ae27eecc284f0cd898db8aca
2020-06-17 05:51:36 +03:00
levlam
a7fa10718f tg_cli: use OptionParser.
GitOrigin-RevId: c2d73fcc79028d1dce9b951ad02ae880c114c1e0
2020-06-17 05:30:14 +03:00
levlam
c46910d75f Add portable option parser.
GitOrigin-RevId: 0d4f7e2f5bec4826e1c12e3aa1aee642fcf6da07
2020-06-17 03:04:36 +03:00
levlam
18b8e87e74 Support cpu_stat on Windows.
GitOrigin-RevId: df9a2fa6d53fb1c19cd30f2da3354bc23b2f3aee
2020-06-14 04:01:02 +03:00
levlam
6b1c2f797d Add mem_stat support on Windows.
GitOrigin-RevId: cf63e7fe53a00f2fa116472ed12f73492ad8bf29
2020-06-14 02:31:57 +03:00
205fa52f8d Merge commit '44689f81ff8b9bc4583c1c889d8034c47f0c5270'
Conflicts:
	td/telegram/DialogDb.cpp
	td/telegram/MessagesManager.cpp
	td/telegram/StickersManager.cpp
	td/telegram/TdDb.cpp
	td/telegram/WebPagesManager.cpp
2020-06-11 17:44:52 +02:00
andrew (from workstation)
88892a70c6 fix sigfault in "DESTROY NULL file_id_info_" 2020-05-25 10:36:03 +02:00
e3bf0f63f0 Patches 2020-05-23 21:27:24 +02:00
levlam
c13068832b Remove excessive user photos instead of adjusting total_count.
GitOrigin-RevId: c66c645eb83e44a62172aff87a576d8b8d04368f
2020-05-18 16:23:30 +03:00
levlam
68ccc65bb4 Add searchMessagesFilterFailedToSend.
GitOrigin-RevId: fdae4552eea6fdbb28906d43963aa6001e7b9401
2020-05-02 00:50:51 +03:00
levlam
52ea0998ec Allow to pass multiple input language codes in searchEmojis.
GitOrigin-RevId: 0fb99694447f3ac02063eb9c03af2c2b3dfc267e
2020-04-22 15:17:53 +03:00
levlam
4a5320e2e5 Partial support of new MessageDice.
GitOrigin-RevId: 075d457a264bb00d28194e80b709205711b32c69
2020-04-18 08:45:41 +03:00
levlam
06135cccf9 Add parameters offset and limit to getTrendingStickerSets.
GitOrigin-RevId: 360c14f4cd357d23c3537ab26ee55a5b5ed29e81
2020-04-18 01:55:54 +03:00
levlam
4905a851f0 Add clear_draft parameter to inputMessageDice.
GitOrigin-RevId: 2ff67cf4fe198241f7713103f46d7d724d51e591
2020-04-13 14:18:46 +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
3b2c06e520 Improve chat statistics.
GitOrigin-RevId: a55d3a62bbeded1000f58a348c1ab7225b85d39a
2020-04-03 03:53:33 +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
3d07b45a21 Update layer to 111.
GitOrigin-RevId: 47862200a12f3b5b9e5058192d5e9a9cdca862aa
2020-03-14 01:56:47 +03:00
levlam
7d71ec447a tg_cli: remove file_reference logging from WARNING,
GitOrigin-RevId: 06483fd96b69f5ef74660adeec21e46fed99bbb3
2020-03-14 20:38:09 +03:00
levlam
8ca5e11e3f Add draftMessage.date.
GitOrigin-RevId: 5fea574e388a14fed3186b5c97a2a830181d6e98
2020-03-12 19:56:42 +03:00
levlam
ed7e486668 Improve parse_markdown_v3 test and fix parse_text_url_entities_v3.
GitOrigin-RevId: 337b87cbb885f92f30c9c95603b0ac37693d104f
2020-03-12 01:44:42 +03:00
levlam
1068cac8f0 Add synchronous td_api::parseMarkdown method.
GitOrigin-RevId: 89f59eda7076959a6bed9db006f895298e2fd66c
2020-03-09 23:55:32 +03:00
levlam
f8abeef8ad tg_cli: add spgttl and SMU.
GitOrigin-RevId: d9dc7e88a596faea73852bdb97f58b14a134c41b
2020-03-05 20:11:35 +03:00
levlam
692fddfe91 tg_cli: allow username as supergroup_id.
GitOrigin-RevId: ffd0fcdd4e17be3151aeb3cd5e3c51e466e68c59
2020-03-04 03:10:50 +03:00
levlam
a1e93ebba5 Add optimizeStorage.return_deleted_file_statistics.
GitOrigin-RevId: f7533781027891624017c605b1d3ac3e91da5086
2020-03-02 11:59:47 +03:00
levlam
dafbedaefe Improve reading chat history.
GitOrigin-RevId: 82e2fc0ca2cbf1c59507fb74120732433ac15603
2020-02-19 20:02:42 +03:00
levlam
3aa55a2e89 Add setLocation method.
GitOrigin-RevId: 43fef89f4d2175cf9ec5a20409979c988e781a28
2020-02-14 16:17:45 +03:00
levlam
a5aaa4d0f1 Add getBankCardInfo method.
GitOrigin-RevId: 1c3c6f5dae3bd197c9aa6998836ffada58f8a094
2020-02-13 19:20:34 +03:00
levlam
32b3a75676 Allow bots to send closed polls.
GitOrigin-RevId: 9ba80686140dd2a9d909a9f7add53a8cd69bea90
2020-01-21 18:09:15 +03:00
levlam
16bf911dde Update layer 109. TON-related requests was removed.
GitOrigin-RevId: 7b6cba050a43aab728928e145829a402a055df52
2020-01-20 01:52:46 +03:00
levlam
8350443093 Add limit to getPollVoters.
GitOrigin-RevId: 7f782124e111680b3b726685d6633e79f3d3b60f
2020-01-18 07:01:05 +03:00
levlam
da4694bc81 New polls support fixes.
GitOrigin-RevId: f5421227029a8ae1f9284882e6f6221617002925
2020-01-14 01:51:03 +03:00
levlam
4e22f29c53 Add td_api::getPollVoters.
GitOrigin-RevId: 47ad78287433a2efb9b66f18a960e4de6060842a
2020-01-13 21:21:58 +03:00
levlam
a7501e1582 Update layer to 109. Add new poll types.
GitOrigin-RevId: cc82f1bfdf1d4cd906212009f2dc8d84e0cb543a
2020-01-11 03:46:26 +03:00
levlam
3659757dc3 Add parameter searchEmojis.input_language_code.
GitOrigin-RevId: c0cc78cb2957c9b9be4c3310a0505d08f6189006
2020-01-08 19:07:40 +03:00
levlam
e44b02fe45 Fix some includes.
GitOrigin-RevId: 1a3a8bab67f3ed56545d58815187d7a8f99944d9
2020-01-03 01:48:23 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
b929a95fe2 Update documentation.
GitOrigin-RevId: 2dc3b759de07cea17cf3fb0d7569244ead20fbd0
2019-12-31 00:58:11 +03:00
levlam
2704d52f96 tg_cli: minor.
GitOrigin-RevId: f0e63c87b6c96e4b6f313c0112d559fd6e15eb3f
2019-12-29 01:46:30 +03:00
levlam
8f72e0daea Remove necessity to include td/tl/tl_json.h.
GitOrigin-RevId: 612988c86cd74eddf6f4ae02fee33635afc93995
2019-12-24 04:08:42 +03:00
levlam
240c092368 Remove tl_json dependency on td_api.
GitOrigin-RevId: 2453a8ac022cf86b799d24045d98e3e69b4a3d9e
2019-12-24 03:55:36 +03:00
levlam
051acb85af Fix setting the same background.
GitOrigin-RevId: 2f1d147f32d66916683e1a18bf4734dd8ad70407
2019-12-23 01:29:19 +03:00