Commit Graph

278 Commits

Author SHA1 Message Date
levlam
a3717481ed More robust mkpath.
GitOrigin-RevId: 3c0417c3223dff7161f4457da8ae475f6dc8f925
2018-03-04 22:53:21 +03:00
levlam
1a8eb4b4e5 Do not create dialog in check_dialog_username.
GitOrigin-RevId: 788310ce62dc9d824f00043b7aecf2a512cd7a84
2018-03-04 22:27:42 +03:00
levlam
e0381695a3 Add is_secret flag to messageAnimation, messagePhoto, messageVideo and messageVideoNote.
GitOrigin-RevId: 15bcfda6fb5723c6e4468ce73d0ad737a09426dc
2018-03-04 22:18:32 +03:00
levlam
aeff9a99d1 Do not increment message view counter in closed chats.
GitOrigin-RevId: e08b6cbea02602538fa5189eeee574a9d65ce604
2018-03-04 17:59:18 +03:00
levlam
83b8a3a942 View messages in all chats.
GitOrigin-RevId: 19e415c997342b01f9d0f1323910e52fab2b6be8
2018-03-04 17:41:02 +03:00
levlam
75371b6399 Add Chat.can_be_reported.
GitOrigin-RevId: b1cf15ee0071bbb2ab6d026121eb9d2a0735e5b4
2018-03-04 17:14:37 +03:00
levlam
72908f6056 Document bytes JSON representation.
GitOrigin-RevId: 7b088bca29647806d1fe75db6d71eae22a348e27
2018-03-04 03:26:29 +03:00
levlam
40144546bb Silence MESSAGE_NOT_MODIFIED for regular users.
GitOrigin-RevId: 4cab24b760b68f378f48aeaed321889a2f3fa2ac
2018-03-04 02:09:08 +03:00
levlam
d64280c890 Update layer #76.
GitOrigin-RevId: d865abc2c8fb9b3b1350fcd689ef086de38aab3e
2018-03-04 00:33:26 +03:00
levlam
b5036975b8 Allow to specify message_ids in td_api::reportSpam.
GitOrigin-RevId: c77dcd89e58c38ac218204230620513c2cdda60d
2018-03-02 19:21:43 +03:00
levlam
51135ccd1e Add td_api::checkChatUsername.
GitOrigin-RevId: 290255ad825b08484657e08bab5ffab70c61afde
2018-03-02 02:19:00 +03:00
levlam
93c22e7047 Add expires_in to messageLocation.
GitOrigin-RevId: d713cdd57d8b534c3d123a81d28a51b3586bf491
2018-03-01 02:14:22 +03:00
levlam
fc7c618782 Return Chat in joinChatByInviteLink.
GitOrigin-RevId: ee8ad4f0de5001bad6519ab5f109ebb0f458f93a
2018-03-01 01:08:45 +03:00
levlam
802e7eb8a0 Fix Socks5.
GitOrigin-RevId: 1a11e4c8c24218ab5fdcb52f695957f30c8109e1
2018-02-28 23:25:42 +03:00
levlam
6c6544fd06 Move .Net Td API to Api namespace.
GitOrigin-RevId: 5a8a0c9ccd49575e6e15db354e60b027e0346b19
2018-02-28 21:38:21 +03:00
levlam
7c445958ed Improve logging.
GitOrigin-RevId: dcc5c492ecdc569ae2d85b5d36373e4f88b35ae2
2018-02-28 20:03:24 +03:00
levlam
1ac97a6ba7 Various fixes.
GitOrigin-RevId: 80fa34e64e6824a0f96c38d2e8b0a32455267ea8
2018-02-28 13:25:07 +03:00
levlam
a741fe7925 Minor fixes.
GitOrigin-RevId: beff71eb64dee126727d8be2a18b09ee99d4fe40
2018-02-28 04:22:17 +03:00
levlam
83d845ad32 Move .Net classes to Telegram::Td namespace.
GitOrigin-RevId: 31d5cf030c30d7a1f58099decdcec265dbf6be0a
2018-02-28 04:11:29 +03:00
levlam
1b2367c866 Add Value instead of Data when class is shadowed by property.
GitOrigin-RevId: d4c48fcf34b10af09471c0fe132cc9e1a871566a
2018-02-28 03:06:42 +03:00
levlam
6eadf472fe Rename TdWindows to TdDotNet.
GitOrigin-RevId: 0bfff62c224dcbd316534649b119917280b3b398
2018-02-28 02:09:23 +03:00
levlam
9874d08701 Fix CMake.
GitOrigin-RevId: 38fc033a7ad632824393760d157d094002598a00
2018-02-28 01:03:38 +03:00
levlam
c40ab5d8d6 Fix loading of sticker sets.
GitOrigin-RevId: dc3d4425181d154a0aa5dbc2b7e1042ef216a127
2018-02-27 04:14:47 +03:00
levlam
343b83c23c More calls to recalc_unread_message_count.
GitOrigin-RevId: 33435c2952192c876e6636534d12330c976b9bd0
2018-02-27 04:04:38 +03:00
levlam
8d16c86c73 Preload chats from server if there is no more chats in the database.
GitOrigin-RevId: b80b27fc423f9059edc103c94678dd2fd8fb01aa
2018-02-26 21:31:10 +03:00
levlam
57a6071c0f Replace empty first_name with phone_number.
GitOrigin-RevId: 3d19463a84d1aa074446382ff61e54f3f23563e1
2018-02-26 20:52:17 +03:00
levlam
b5f695de80 Fix crash on empty parameters in setTdlibParameters.
GitOrigin-RevId: 09ad208e356105af352134e1eabe6b30c95fdeb7
2018-02-26 12:59:46 +03:00
Arseny Smirnov
751029d45d DcOptionsSet: debug
GitOrigin-RevId: c6836c1c0c5a9755d47809931a2505346ab7e885
2018-02-27 12:38:49 +03:00
Arseny Smirnov
44aad96473 FileManager: debug
GitOrigin-RevId: 3deeb79ea9c9f0a4d5c23e8605b528ed64765a7a
2018-02-27 11:48:47 +03:00
Arseny Smirnov
c91edb6163 SequenceDispatcher: bugfix
GitOrigin-RevId: b02782f0a4247d5b6d3a1fc77d73deb240c80ad6
2018-02-27 11:48:16 +03:00
Arseny Smirnov
70ad2664bd Add initial C# support
GitOrigin-RevId: c0ece19b41ca8e348285df95f9b81b188d3e5835
2018-02-26 21:08:47 +03:00
Arseny Smirnov
9310e29ff4 Check hash of local files with same name, before download
GitOrigin-RevId: ad97f6df43eb022d5c122a950081c5d7700820f5
2018-02-26 13:05:14 +03:00
levlam
dd54e3cee0 Update layer 76.
GitOrigin-RevId: fe0ae4a97a6b05894e4a8cb3afe9251485eaeeb1
2018-02-25 21:56:16 +03:00
levlam
0c9249f7f6 Add updateUnreadMessageCount.
GitOrigin-RevId: 7d8c4d085cd742cd000ce409545c9a034b8ad586
2018-02-25 03:00:17 +03:00
levlam
1a423c15bc Add Td initialization debug.
GitOrigin-RevId: 933972963ae38a19d68bf5371e7bf76dc308f097
2018-02-24 01:28:23 +03:00
levlam
483678a6b9 Remove unused cstdio header.
GitOrigin-RevId: 3530f550b85f244ec7b7274ded224bf7f15a3fa9
2018-02-24 00:29:36 +03:00
levlam
d409d44d7f Remove MessagesManager dependency on sstream.
GitOrigin-RevId: dd20f03bdef240f92ce01a485f3555553e93f113
2018-02-24 00:25:17 +03:00
levlam
412c93b0f1 Send updateNotificationSettings when a chat is unmuted.
GitOrigin-RevId: 739c836bbcdff57200eb488a8d7f5a43163d86e5
2018-02-23 18:35:36 +03:00
levlam
a75b6611d5 Always change unread count through set_dialog_last_read_inbox_message_id.
GitOrigin-RevId: 0c00b8369c4f7e0d4f83d514ce4264bf821acbf7
2018-02-23 04:35:36 +03:00
levlam
d1f1a14a37 Update layer to 76: add messageWebsiteConnected.
GitOrigin-RevId: 8cb5128a7d7eac2afe0622fc901392bf318fa460
2018-02-22 03:36:40 +03:00
levlam
f4afe7f63e Ensure that there is no mentions in private chats.
GitOrigin-RevId: dac0f3f92695cdb4dda1303e5deb0df7c4132423
2018-02-21 16:44:23 +03:00
levlam
9ef7a1ec1d Add missed call to update_channel.
GitOrigin-RevId: e5591a62d9ae123a143d2a4f63ecda7ab587722e
2018-02-21 04:20:47 +03:00
levlam
3119a17518 Improve td_json_client documentation.
GitOrigin-RevId: a2d673c42de4a9fa4d882bcc20fe279084edcb28
2018-02-21 03:53:29 +03:00
levlam
c3fe3f97ec Accept formattedText in getWebPageInstantView.
GitOrigin-RevId: b9f2345eb170da6cbdbb6c70abf11fa682630802
2018-02-21 00:20:45 +03:00
levlam
f0e5accbb4 Fix scheduler_id for GetHostByNameActor.
GitOrigin-RevId: fca68b68bfddb750e191d9d2479418149b5cf250
2018-02-20 20:16:17 +03:00
levlam
d23f21abb0 Move fix_text_message implementation to MessageEntity.cpp.
GitOrigin-RevId: 24e1a7d780f5cbef62f6b2df9b4df042ab89feea
2018-02-20 05:41:17 +03:00
levlam
e936bc0130 Add set_dialog_is_pinned(DialogId) function.
GitOrigin-RevId: ba1973e459a8db3e1bfd5e433dbac40e965353e1
2018-02-20 04:47:55 +03:00
levlam
d7f48f849a Fix repeated call to on_send_message_ok.
GitOrigin-RevId: c6eb79cf4dd37657e3ef50a5597938c4a02ca9af
2018-02-20 04:17:06 +03:00
levlam
d7377b2a20 Better condition for dropping messages with message_id < 1.
GitOrigin-RevId: d9e0f45c96bebfc85c6493f46166d27879674b79
2018-02-20 03:45:17 +03:00
levlam
2576b10082 Fix failed to send message message_id.
GitOrigin-RevId: 9fba0bd1fb7ce8d396c0012c9537155dc20f1054
2018-02-20 03:14:47 +03:00
levlam
b676810b50 Use get_url_file_name whenever appropriate.
GitOrigin-RevId: 4a1f408424883c56d2017f4239cae01987bd39c0
2018-02-20 02:29:19 +03:00
levlam
d475864012 Fix suggested name for generate, local and URL files.
GitOrigin-RevId: 2f203b2964f4b7da08346a7147e51af027baa2d2
2018-02-20 01:28:06 +03:00
levlam
d3c980e5d3 Do nothing when the same proxy is set.
GitOrigin-RevId: 69611358667c598a1ce009944cbe21bbdad4b3ad
2018-02-20 00:44:52 +03:00
levlam
20ffe41d80 Better errors for empty TDLib parameters.
GitOrigin-RevId: 166e4fe7208cae59959f49794e3a73602141f050
2018-02-20 00:20:47 +03:00
levlam
3604f1cf54 Add some debug logging.
GitOrigin-RevId: 6bd223bb40b2092f703d62531df13b96cb3e6066
2018-02-19 23:21:53 +03:00
levlam
0c9eb44038 Rename FileNode.name to remote_name.
GitOrigin-RevId: 578a0ae7728ef97b35dc8d5bcbbe7c2456a3dd6c
2018-02-18 19:29:44 +03:00
levlam
186bffc0b5 Fix BlackBerry spelling. Improve documentation.
GitOrigin-RevId: affe187a17c23125773567c8eab6655c11ec0fb4
2018-02-17 15:32:14 +03:00
levlam
269cf358e0 Fix some spelling.
GitOrigin-RevId: 102622d5c1871a52d6b229f708df6305006f6137
2018-02-17 02:54:44 +03:00
levlam
617435c557 Fix can_be_forwarded flag for expired messages.
GitOrigin-RevId: 2e693cf8b25ebc419230bfe0d2c7aad145f4708a
2018-02-17 02:16:24 +03:00
levlam
143ff2364f Update list of TLDs.
GitOrigin-RevId: eaa4ce74e50836bfe9204f90cd6dd316de10183a
2018-02-17 01:29:13 +03:00
levlam
4cc9b7b34b Use send_closure for calling send_result/send_update in more places.
GitOrigin-RevId: 1b084e4e457d4c0a6d1a793557bf974e8a569f67
2018-02-17 01:00:22 +03:00
levlam
b171be4331 Fix warning.
GitOrigin-RevId: 263924f849fd64b5d72c6b0842385d8b27677b98
2018-02-16 05:41:37 +03:00
Arseny Smirnov
e45d6a386c Optimize check_encryption
GitOrigin-RevId: f42399a9f52e248ea88d0a44d2f2f17d5aaf2ae9
2018-02-15 08:57:06 +03:00
Arseny Smirnov
34d46fb58c SecretChatActor bugfix
GitOrigin-RevId: 13daf2ca4e436b5e68be674daeb7d8adb58b39f4
2018-02-13 20:22:23 +03:00
levlam
b72fd09756 Fix get_replied_message.
GitOrigin-RevId: de539d5bf3f676ad67805524b7b61d60cb4f5cc3
2018-02-14 08:51:35 +03:00
levlam
841d5a1d20 Fix get_replied_message.
GitOrigin-RevId: 3199073da8ad8de3be08c103e48abb93caed550f
2018-02-14 08:19:50 +03:00
levlam
c407c507ad Fix some std:: namespace function usages.
GitOrigin-RevId: f867d613f9f86fa25a2a7ead29c0a7dadfb8402d
2018-02-14 00:41:45 +03:00
levlam
18b09b4ab1 Fix some logging.
GitOrigin-RevId: 08549f79a7ebb5b1b0b2ab9d13ab591f78103e6b
2018-02-14 00:28:16 +03:00
levlam
cc9369d49d MessagesManager::fix_new_dialog.
GitOrigin-RevId: ae0f68c634031d58660b68e4f3360d017935547d
2018-02-14 00:17:00 +03:00
levlam
24b3998662 Fix installed sticker set list.
GitOrigin-RevId: 34c6e87b79d3626bb4d51d85753d8f652faafcd5
2018-02-13 23:41:37 +03:00
levlam
471bca8da0 Replace CHECK eith check.
GitOrigin-RevId: 6614933068233bc485f9282cc318289ce18bfd3b
2018-02-13 22:33:02 +03:00
levlam
d6e9386ca8 Always wait for mailbox in MessagesManager just in case.
GitOrigin-RevId: edd7c3e794a8ba7c359e780835180d07bddd7ae3
2018-02-13 20:00:40 +03:00
levlam
fb6e5883ee Better debug.
GitOrigin-RevId: 3e830f42a00a12ce0f27bf3306346fbdd747867b
2018-02-13 18:40:52 +03:00
levlam
68eea6e5bd Trying to fix last_new_message_id.
GitOrigin-RevId: 13b336c88be9de4340feb4930741e22f2789de60
2018-02-13 18:24:56 +03:00
levlam
341c50f0e3 tg_cli: smtp?f?.
GitOrigin-RevId: 9ac8040c3f789116d4112cc5b0f441fdb10d502d
2018-02-13 17:01:30 +03:00
levlam
ba83c2c5fc Fix call to GetNotifySettingsQuery.
GitOrigin-RevId: 377df0fdce5245fb3a880fca19261411d322cec2
2018-02-12 15:20:18 +03:00
levlam
4bd61bdc86 Fix CE.
GitOrigin-RevId: 5f9f30f6d6c67307741cc4623d05e7f2caf53a47
2018-02-12 14:46:57 +03:00
levlam
cab1038f62 Fix include.
GitOrigin-RevId: 942ebe1d01608f33b30fccc5e52a88ed698a49d0
2018-02-12 13:54:27 +03:00
levlam
a6ab35e616 Replace std::max/min with td::max/min.
GitOrigin-RevId: 56fb21194e995cbb37b3ebb5caed689c10320b8d
2018-02-12 13:37:54 +03:00
levlam
24c873884f AuthData.cpp.
GitOrigin-RevId: 8ca44a4d07591d785b571e8847acdc6ee3a45638
2018-02-12 12:28:14 +03:00
levlam
b2d9b5738c Move ObfuscatedTransport::init implementation to cpp.
GitOrigin-RevId: 7e69d147dffce3ac1cd1254959b9e52ece5d50ca
2018-02-12 12:01:11 +03:00
levlam
f4069240e5 Periodically ping server by bots.
GitOrigin-RevId: 3e173e32d564f50c352b96a6ad2d04b7ec72af58
2018-02-11 21:33:32 +03:00
levlam
be5d7a7059 Add warning when date is greater than known server time.
GitOrigin-RevId: 365fe5f127671336a633a2ca8fab10e3ea313e2b
2018-02-11 20:21:18 +03:00
levlam
4a3a5e1a50 Disable read messages for bots.
GitOrigin-RevId: b6e2d6a75296e6029db66960fceb69b568557e92
2018-02-11 19:55:46 +03:00
levlam
2cd12d5049 Add source to get_message_entities.
GitOrigin-RevId: af699950241416adb082a08a8f6c4e106f0fb24d
2018-02-11 19:43:58 +03:00
levlam
cc24f0edcc Silence forward info change warning when only author_signature changes.
GitOrigin-RevId: a0962b6e52c473902208ba84f9a6751889254c17
2018-02-11 19:25:53 +03:00
levlam
6b927449eb Fix some includes.
GitOrigin-RevId: 08add4bab90bb23e0e71340ac647ce8cafc4b900
2018-02-11 18:58:18 +03:00
levlam
6e3cbf42dc Remove calls to Logger.printf.
GitOrigin-RevId: 3b5452fc4bd705ce5cf98d360247ec0146923e2d
2018-02-11 17:07:16 +03:00
levlam
e3867152e7 Silence now possible warning.
GitOrigin-RevId: 1b431d3d20c512239445f388934eba14bd8f9522
2018-02-10 04:14:27 +03:00
levlam
df4f8b0809 Better locale changing.
GitOrigin-RevId: 51700edad491f43264769b932961a3eae1c7fd34
2018-02-10 00:52:03 +03:00
levlam
6277672f3e tg_cli: better locale changing.
GitOrigin-RevId: 1c8c5290c49687174df5a77d50bf9398b3c285c6
2018-02-09 20:02:01 +03:00
levlam
3abe871746 Set nosound flag for InputMessageVideo.
GitOrigin-RevId: b5706f621abe629360b5cacd3106c5764f3744a8
2018-02-09 19:35:30 +03:00
levlam
c0223de330 Fix handling of requests with the same id.
GitOrigin-RevId: dd1a173c497139297fcff5197a3e9762674a8274
2018-02-09 18:59:13 +03:00
levlam
4614933a1e Fix closing Td before initialization.
GitOrigin-RevId: fcdb17b70d2dc0ac2f18dfe98aa3bb535ce50829
2018-02-09 13:29:50 +03:00
levlam
7c4ecdf650 Better getChatPinnedMessage.
GitOrigin-RevId: 092ac37109dd8e73182dd4b11a98ffe777841dc4
2018-02-09 01:54:39 +03:00
levlam
85da530056 Fix getRepliedMessage.
GitOrigin-RevId: afc96585c23b0bbc6c2a51f0b431ae92287901eb
2018-02-08 15:54:25 +03:00
levlam
607a485bdf Remove variation selector-15 from emoji just in case.
GitOrigin-RevId: 843a05314c7f993963d721b7c149a0a37d0531ac
2018-02-08 14:42:59 +03:00
levlam
6618f507bf Fix missing-field-initializers warnings.
GitOrigin-RevId: afab2728f52c64ddbf8d2c2bf24eda3882ad471e
2018-02-08 01:15:30 +03:00
levlam
99c3946d41 More connection_recoverer logging.
GitOrigin-RevId: c86cdef27ec3beacfe6883a100d95a36019a902b
2018-02-07 23:48:40 +03:00
levlam
154022ebfe Update layer 75:
- Add connected websites support.
- Add flag supports_streaming to video and inputMessageVideo.
- Add new methods for message loading: getRepliedMessage and
  getChatPinnedMessage.

GitOrigin-RevId: 1dc5d367e27722fe9c8d2765f62ed80176eea2ce
2018-02-07 02:31:38 +03:00