Commit Graph

21 Commits

Author SHA1 Message Date
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
fce20df018 Add support for sponsored chats with an invite link. 2021-12-30 14:15:04 +03:00
levlam
20a460aeb3 Update layer to 136. 2021-12-28 17:19:18 +03:00
levlam
a81ab8abba Remove viewSponsoredMessage in favor of viewMessages. 2021-12-27 18:17:02 +03:00
levlam
23d537052e Use unique 53-bit identifiers for sponsored messages. 2021-12-27 16:49:11 +03:00
levlam
d4f5e67243 Fix getSponsoredMessage. 2021-12-24 12:01:24 +03:00
levlam
ae1d1867f2 Remove multiple sponsored messages in a chat. 2021-12-21 14:19:48 +03:00
levlam
9f6b3699c6 Add is_dialog_opened. 2021-12-07 12:32:23 +03:00
levlam
e79ec9469b Fix link in sponsoredMessage. 2021-11-27 13:36:17 +03:00
levlam
616b0e6d6f Improve ResultHandler/NetActor td_ private field name. 2021-11-08 15:20:38 +03:00
levlam
5578ecc6b8 Remove NetQuery id from ResultHandler and NetActor. 2021-11-08 14:19:57 +03:00
levlam
ca7947cf44 Minor improvements. 2021-11-04 12:46:08 +03:00
levlam
46486bd82e Init disable_web_page_preview for incoming messages. 2021-11-04 00:21:27 +03:00
levlam
16f1e16107 Support message links in sponsoredMessage. 2021-10-08 15:29:40 +03:00
levlam
564521453f Improve sponsoredMessage. 2021-10-08 15:00:13 +03:00
levlam
328c5b57d2 Add Global::request_aborted_error. 2021-10-07 16:36:21 +03:00
levlam
d6f3d9f08a Use error code 400 instead of small error codes. 2021-09-24 10:59:51 +03:00
levlam
5c87fb853e Use int32 as sponsored message ID. 2021-09-10 11:44:50 +03:00
levlam
5bb10b4bb3 Cache sponsored messages. 2021-09-07 20:27:04 +03:00
levlam
efbb5bde96 Combine getSponsoredMessages queries. 2021-09-07 17:21:18 +03:00
levlam
ae6b79d57b Add SponsoredMessageManager. 2021-09-07 15:49:34 +03:00