Commit Graph

361 Commits

Author SHA1 Message Date
levlam
f05754481f Support business_connection_id with sendChatAction. 2024-03-14 20:07:18 +03:00
levlam
a731cb0083 Add Client::init_message. 2024-03-14 16:09:23 +03:00
levlam
a3f62fcdf7 Add cache for business connections. 2024-03-14 15:44:44 +03:00
levlam
393b6c00fb Add "business_connection" updates. 2024-03-14 15:09:47 +03:00
levlam
de02ab0a00 Update TDLib to 1.8.27. 2024-03-14 14:47:41 +03:00
levlam
a19b05e4ff Fix warnings. 2024-03-11 22:28:39 +03:00
levlam
656152f1f1 Add Message.reply_to_story. 2024-02-15 11:20:57 +03:00
levlam
c7adc690e4 Add chat and id fields to the class Story. 2024-02-14 18:43:33 +03:00
levlam
36b97bd5a7 Add Chat.unrestrict_boost_count. 2024-02-14 18:16:48 +03:00
levlam
f9bd4980ee Add Message.sender_boost_count. 2024-02-14 17:53:10 +03:00
levlam
75a2aae6b3 Support service messages about added boosts. 2024-02-14 17:44:52 +03:00
levlam
d8c8291886 Allow faster reopen for bots that were successfully authorized. 2024-02-14 16:59:22 +03:00
levlam
e7b81da50b Make story management rights non-optional. 2024-02-14 14:06:55 +03:00
levlam
f1b9eb8d4c Update TDLib to 1.8.25. 2024-02-14 14:04:56 +03:00
levlam
4639fbfb64 Update TDLib to 1.8.24. 2024-01-29 02:03:25 +03:00
levlam
fc1de34374 Allow to pass empty ReplyParameters. 2024-01-01 17:47:09 +03:00
levlam
ee59941ca3 Add Message.users_shared field. 2023-12-22 23:32:52 +03:00
levlam
0fbcfa7eba Support request_users.max_quantity. 2023-12-22 23:26:43 +03:00
levlam
047a3e9922 Support channel emoji status. 2023-12-21 22:30:01 +03:00
levlam
0ec870fd77 Add setMessageReaction method. 2023-12-20 17:57:39 +03:00
levlam
56d2dc6392 Add "message_reaction_count" update. 2023-12-20 17:45:26 +03:00
levlam
82e48a0908 Add "message_reaction" updates. 2023-12-20 17:35:18 +03:00
levlam
1320b03bc5 Add Message.giveaway_winners. 2023-12-20 16:44:01 +03:00
levlam
1f512433ef Add "has_public_winners" and "prize_description" giveaway fields. 2023-12-20 16:19:06 +03:00
levlam
fd87df5fed Add fields chat.profile_accent_color_id and chat.profile_background_custom_emoji_id. 2023-12-20 16:09:15 +03:00
levlam
fa0bc023fb Update TDLib to 1.8.23. 2023-12-20 16:05:37 +03:00
levlam
f5f7bbb57f Add Chat.available_reactions. 2023-12-20 15:14:10 +03:00
levlam
57cad9c0a8 Add copyMessages method. 2023-12-12 14:48:35 +03:00
levlam
b039c8e927 Add forwardMessages method. 2023-12-12 14:37:51 +03:00
levlam
1c25870679 Add deleteMessages method. 2023-12-11 20:55:10 +03:00
levlam
83a49569ab Store identifier of inaccessible pinned message. 2023-12-04 15:32:17 +03:00
levlam
6fdb4d2416 Add Message.giveaway_completed. 2023-12-04 15:23:59 +03:00
levlam
9620d43700 Support quote position in reply parameters. 2023-12-04 14:31:45 +03:00
levlam
2c5ff070b3 Add class TextQuote. 2023-12-04 14:18:57 +03:00
levlam
59436578ee Update TDLib to 1.8.22. 2023-12-04 13:42:00 +03:00
levlam
e66ffb1556 Support chat in ReplyParameters. 2023-11-15 16:18:00 +03:00
levlam
1333e3d2ea Support quote in ReplyParameters. 2023-11-14 19:34:38 +03:00
levlam
fcb1814a0c Improve error message. 2023-11-14 19:22:17 +03:00
levlam
9f5b2fa537 Add class ReplyParameters and fields "reply_parameters". 2023-11-14 18:55:55 +03:00
levlam
095511b4eb Add Client::check_reply_parameters. 2023-11-14 18:10:00 +03:00
levlam
76c108bf3c Simplify JsonChat usage. 2023-11-14 13:07:14 +03:00
levlam
096f066024 Add Message.quote and Message.quote_entities. 2023-11-14 13:00:27 +03:00
levlam
52171bd90c Add Message.external_reply. 2023-11-14 12:56:32 +03:00
levlam
c729e35ddb Add Message.forward_origin. 2023-11-13 23:17:15 +03:00
levlam
c44f2c6c3c Store td_api::MessageOrigin in MessageInfo. 2023-11-13 22:41:02 +03:00
levlam
00d351c85c Add message.link_preview_options. 2023-11-13 22:08:07 +03:00
levlam
c39cc1b0ca Allow to specify link preview options for sent text messages. 2023-11-13 21:19:35 +03:00
levlam
f1674d26de Add getUserChatBoosts. 2023-11-13 20:16:11 +03:00
levlam
cbb0166e7c Add "chat_boost" and "removed_chat_boost" updates. 2023-11-13 19:51:05 +03:00
levlam
4bb770f31a Add Chat.background_custom_emoji_id. 2023-11-13 19:15:19 +03:00
levlam
282e31f5fc Add Chat.accent_color_id. 2023-11-13 19:08:21 +03:00
levlam
704a4272dd Add Chat.has_visible_history. 2023-11-13 18:56:15 +03:00
levlam
b34c595eb0 Simplify update*FullInfo handling. 2023-11-13 18:53:04 +03:00
levlam
84f74d8ad6 Add Message.giveaway. 2023-11-13 18:38:57 +03:00
levlam
6a5393a925 Add Message.giveaway_created. 2023-11-13 18:22:04 +03:00
levlam
b81f8065d7 Support td_api::textEntityTypeBlockQuote. 2023-11-09 19:15:42 +03:00
levlam
13d68879d3 Add Client::get_same_chat_reply_to_message_id(const MessageInfo *message_info). 2023-11-09 18:24:50 +03:00
levlam
0566e21f93 Keep reply to the top thread message for external replies. 2023-11-05 22:08:06 +03:00
levlam
34ed6c3512 Store td_api::messageReplyToMessage in MessageInfo. 2023-11-05 21:54:58 +03:00
levlam
9447ce07ea Minor improvements. 2023-11-04 02:39:57 +03:00
levlam
9a7a293a84 Update TDLib to 1.8.21. 2023-10-31 03:10:35 +03:00
levlam
d836f78e41 Log skipped updates. 2023-10-23 11:53:20 +03:00
levlam
f15bc7396e Update TDLib to 1.8.20. 2023-10-13 01:15:42 +03:00
levlam
9c413c7f11 Maintain last time when a file was uploaded for all requests. 2023-09-25 19:39:51 +03:00
levlam
d5783a1545 Add more fields to WriteAccessAllowed. 2023-09-19 20:37:10 +03:00
levlam
2b43e08dca Support "can_post_stories", "can_edit_stories" and "can_delete_stories" administrator rights. 2023-09-19 19:37:24 +03:00
levlam
11d19baa2e Update TDLib to 1.8.19. 2023-09-19 19:26:43 +03:00
levlam
df1fe4c05f Fail request early if message/caption/explanation text is too long. 2023-09-14 19:11:12 +03:00
levlam
4e8ba65838 Update TDLib to 1.8.18. 2023-09-13 23:14:57 +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
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
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
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
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
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
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