Commit Graph

473 Commits

Author SHA1 Message Date
levlam
1ec733a3f8 Don't update CPU statistics before returning it to avoid synchronous open of "/proc/stat". 2023-09-14 16:57:28 +03:00
levlam
4e8ba65838 Update TDLib to 1.8.18. 2023-09-13 23:14:57 +03:00
levlam
e58e8d3989 Improve query logging. 2023-09-08 18:09:08 +03:00
levlam
95ff757c73 Immediately return an error if more than 50 inline query results are provided. 2023-09-06 18:48:41 +03:00
levlam
70670d7217 Explicitly disallow message updates with "channel_chat_created" content. 2023-09-06 17:06:21 +03:00
levlam
18b5f287f7 Update CPU statistics on a dedicated thread. 2023-09-03 01:03:53 +03:00
levlam
1cab23c1f1 Improve ServerCpuStat. 2023-09-03 00:55:10 +03:00
levlam
89383695ed Make watchdog timeouts more precise. 2023-08-31 22:51:07 +03:00
levlam
8b2b62bd6f Update version to 6.8. 2023-08-18 18:39:30 +03:00
levlam
980f98299f Improve logging of big queries. 2023-08-08 18:00:24 +03:00
levlam
0868ee6beb Simplify reply markup parsing. 2023-07-31 20:01:53 +03:00
levlam
a78edf0703 Use JsonObject member functions to get field values. 2023-07-31 17:53:56 +03:00
levlam
2bbaf87fea Use get_json_object_long_field to fetch "amount". 2023-07-31 14:02:50 +03:00
levlam
9f688af4fb Add dedicated threads for TQueue and webhook databases and webhook certificate processing. 2023-07-25 22:32:05 +03:00
levlam
c927614964 Improve threads usage. 2023-07-25 22:26:12 +03:00
levlam
ec8e44de5a Improve warnings for old updates. 2023-07-24 21:41:15 +03:00
levlam
f4422f5976 Add unpinAllGeneralForumTopicMessages. 2023-07-24 17:19:14 +03:00
levlam
afd30f2cfa Support messageStory as empty objects. 2023-07-24 16:14:03 +03:00
levlam
51fba26f78 Add Chat.emoji_status_expiration_date. 2023-07-21 13:33:00 +03:00
levlam
736411c113 Update TDLib to 1.8.15 and support votes by chats in polls. 2023-07-20 17:06:32 +03:00
levlam
1fa5c2c31a Improve processing of new messages. 2023-07-20 16:58:10 +03:00
levlam
9ce2f7df4c Don't drop replies to deleted messages. 2023-07-20 16:30:46 +03:00
levlam
68dc4f54a5 Don't track replies by yet unsent messages. 2023-07-20 16:25:42 +03:00
levlam
c8e50b8011 Improve replies handling. 2023-07-19 23:54:47 +03:00
levlam
a9a0140476 Keep last time when a file was uploaded. 2023-07-06 14:47:31 +03:00
levlam
84e512c2e4 Make Client::get_reply_markup static. 2023-07-06 14:01:14 +03:00
levlam
d9c00c452b Use bot identifier as token for webhook requests. 2023-06-28 20:55:38 +03:00
David Guillen Fandos
1c30dc8d3d Merge remote-tracking branch 'official-upstream/master' 2023-05-03 23:48:27 +02:00
levlam
2515892217 Update TDLib and version to 6.7.1. 2023-04-21 16:08:20 +03:00
levlam
c7253129b5 Update version to 6.7. 2023-04-21 13:21:58 +03:00
levlam
e7a61ce8f8 Add "switch_inline_query_chosen_chat" inline keyboard buttons. 2023-04-07 15:29:16 +03:00
levlam
9e87ac2bf9 Add ChatMemberUpdated.via_chat_folder_invite_link. 2023-04-07 14:55:58 +03:00
levlam
38a11d1e1f Add setMyName. 2023-04-07 14:52:10 +03:00
levlam
a894cace6b Add getMyName. 2023-04-07 14:48:34 +03:00
levlam
6561063f52 Update TDLib to 1.8.14. 2023-04-07 14:36:27 +03:00
levlam
0e5673f2dc Don't dump trace on Watchdog timeouts if log is disabled. 2023-03-27 19:05:23 +03:00
levlam
df53cfeb85 Update TDLib and version to 6.6.2. 2023-03-27 12:08:49 +03:00
levlam
8e00a8d41d Update version to 6.6.1. 2023-03-25 09:27:17 +03:00
levlam
10c5272497 Fix warning. 2023-03-23 20:18:32 +03:00
levlam
e9d32ad23d Add Query::get_peer_ip_address. 2023-03-13 18:42:35 +03:00
levlam
26854a6a3d Completely disable network statistics. 2023-03-13 17:40:07 +03:00
Giuseppe Marino
76e5967b72
Merge remote-tracking branch 'upstream/master' 2023-03-11 12:05:34 +01:00
levlam
c5b8e34cd3 Update version to 6.6. 2023-03-09 18:55:26 +03:00
levlam
79ea507664 Minor improvements. 2023-03-09 18:54:59 +03:00
levlam
8fd2a69378 Add setMyShortDescription. 2023-03-04 22:13:39 +03:00
levlam
8ee91caacf Add getMyShortDescription. 2023-03-04 22:12:34 +03:00
levlam
4df8df2f17 Improve BotStatActor::get_score. 2023-02-27 22:12:12 +03:00
levlam
ac28919390 Add getMyDescription. 2023-02-27 21:32:38 +03:00
levlam
f25e81c015 Add setMyDescription. 2023-02-27 02:19:10 +03:00
levlam
ab54061365 Add emoji to sendSticker. 2023-02-26 22:23:38 +03:00
levlam
1720ba3e81 Support "web_app" button in inline query results. 2023-02-22 21:01:05 +03:00
levlam
4dc418b8d3 Add optional web_app_name to WriteAccessAllowed. 2023-02-22 20:45:37 +03:00
levlam
7b2acc80be Avoid unneeded namespace qualification. 2023-02-22 19:50:53 +03:00
levlam
b81073cb1a Remove using of td::Json*. 2023-02-22 19:47:23 +03:00
levlam
f24dca312f Remove using for td::Status and td::Slice. 2023-02-22 19:40:25 +03:00
levlam
b38ce2a79d Add deleteStickerSet. 2023-02-16 16:27:58 +03:00
levlam
64591671fc Add getStickerMaskPosition. 2023-02-14 18:04:47 +03:00
levlam
116e7aab24 Add setStickerKeywords. 2023-02-14 17:54:59 +03:00
levlam
c48dfe5d4d Add setStickerEmojiList. 2023-02-14 17:43:08 +03:00
levlam
bb5f3651b2 Add Client::get_sticker_input_file. 2023-02-14 17:40:32 +03:00
levlam
401894a53b Add setStickerSetTitle. 2023-02-14 17:30:50 +03:00
levlam
0c7a7236eb Add setCustomEmojiStickerSetThumbnail. 2023-02-14 17:26:31 +03:00
levlam
84e6f5fa1d Support keywords in InputSticker. 2023-02-14 17:13:19 +03:00
levlam
d3898d9b7f Allow to preupload animated and video stickers. 2023-02-14 16:46:05 +03:00
levlam
a1d7c768bb Aloow to specify up to 50 stickers in createNewStickerSet. 2023-02-14 16:34:10 +03:00
levlam
d0b5abfc46 Support InputSticker in addStickerToSet. 2023-02-14 14:26:42 +03:00
levlam
1da3d34299 Add Sticker.needs_repainting. 2023-02-14 14:07:38 +03:00
levlam
3be3dfedf6 Add "needs_repainting" parameter in createNewStickerSet. 2023-02-14 13:37:27 +03:00
levlam
96e534bddc Rename "thumb" to "thumbnail". 2023-02-14 13:30:17 +03:00
levlam
0cf13d3bf4 Update TDLib to 1.8.12. 2023-02-13 17:25:33 +03:00
levlam
09c9db306a Fail flood-limited queries with a delay. 2023-02-13 15:52:15 +03:00
levlam
12c56318a8 Update clang-format to 16.0.0. 2023-02-13 15:44:46 +03:00
Giuseppe Marino
85763a1591
Merge remote-tracking branch 'upstream/master' 2023-02-04 15:31:24 +01:00
levlam
8180845429 Update version to 6.5. 2023-02-02 19:21:46 +03:00
levlam
0e6826b7e4 Add use_independent_chat_permissions to restrictChatMember and setChatPermissions. 2023-02-01 04:00:16 +03:00
levlam
0bc181c216 Add ChatJoinRequest.user_chat_id. 2023-02-01 03:46:27 +03:00
levlam
2c23688be6 Support separate media permissions. 2023-01-31 01:46:40 +03:00
levlam
d3846adaa2 Destroy HttpQuery on another thread. 2023-01-23 19:27:19 +03:00
levlam
70428fb762 Improve BotInfo for bots with invalid tokens. 2023-01-18 22:44:47 +03:00
levlam
82d592702d Support messageUserShared and messageChatShared. 2023-01-12 14:49:26 +03:00
levlam
c3c8f112ee Support "request_chat" keyboard buttons. 2023-01-11 20:50:43 +03:00
levlam
e636a6db45 Support "request_user" keyboard buttons. 2023-01-11 20:39:34 +03:00
levlam
c68f6a7a89 Update TDLib to 1.8.11. 2023-01-11 20:30:27 +03:00
levlam
a8f7f78fe1 Rendomize maximum webhook event delay. 2023-01-08 21:30:51 +03:00
levlam
1b741dd3b3 Update TDLib and asynchronously destroy deleted TQueue events. 2023-01-06 18:03:45 +03:00
levlam
452a190094 Reduce Watchdog timeout to 0.25. 2023-01-06 16:30:12 +03:00
levlam
75caf1b0e7 Log top bots in dump_statistics. 2023-01-06 16:29:09 +03:00
levlam
0dcec25d7e Add ClientManager::get_top_clients. 2023-01-06 15:52:53 +03:00
Giuseppe Marino
32275801c7
Merge remote-tracking branch 'upstream/master' 2023-01-01 13:43:25 +01:00
levlam
348b94bdee Update copyright year. 2023-01-01 00:31:16 +03:00
levlam
d091a730fb Update TDLib and version to 6.4.1. 2022-12-31 01:00:50 +03:00
Giuseppe Marino
73c8efa528
Merge remote-tracking branch 'upstream/master'
Changes how searchChatMessages works, may break some code
2022-12-30 21:33:26 +01:00
levlam
c3b3c3033f Update version to 6.4. 2022-12-30 04:11:12 +03:00
levlam
c5ed576b1e Use public photo if full profile photo is unavailable. 2022-12-30 00:21:16 +03:00
levlam
fbc493c361 Add Chat.has_aggressive_anti_spam_enabled. 2022-12-29 21:11:42 +03:00
levlam
b972cebad4 Add Chat.has_hidden_members. 2022-12-29 21:06:38 +03:00
levlam
849d48e858 Add methods for General topic management. 2022-12-29 21:02:15 +03:00
levlam
9b47c90de9 Add Message.write_access_allowed. 2022-12-29 18:06:35 +03:00
levlam
d19413f8e6 Add Message.general_forum_topic_hidden/general_forum_topic_unhidden. 2022-12-29 17:53:55 +03:00
levlam
3704082f2a Add and use JsonEmptyObject. 2022-12-29 17:51:39 +03:00