Commit Graph

41 Commits

Author SHA1 Message Date
levlam
f169ae654c Slowly recheck webhook IP addresses after loading them from database. 2023-11-01 23:01:08 +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
736411c113 Update TDLib to 1.8.15 and support votes by chats in polls. 2023-07-20 17:06:32 +03:00
levlam
d9c00c452b Use bot identifier as token for webhook requests. 2023-06-28 20:55:38 +03:00
levlam
10c5272497 Fix warning. 2023-03-23 20:18:32 +03:00
levlam
79ea507664 Minor improvements. 2023-03-09 18:54:59 +03:00
levlam
0cf13d3bf4 Update TDLib to 1.8.12. 2023-02-13 17:25:33 +03:00
levlam
d3846adaa2 Destroy HttpQuery on another thread. 2023-01-23 19:27:19 +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
348b94bdee Update copyright year. 2023-01-01 00:31:16 +03:00
levlam
a497eb5fcd Create SSL context asynchronously. 2022-12-11 17:17:25 +03:00
levlam
b005f42b2e Improve error messages. 2022-12-05 00:00:08 +03:00
levlam
ed0532bcf7 Use destroy_on_scheduler in WebhookActor. 2022-11-27 01:31:00 +03:00
levlam
a016d13c15 Use td::Hash instead of std::hash. 2022-11-23 23:43:05 +03:00
levlam
c8405e95f3 Improve HttpOutboundConnection parameters. 2022-11-22 16:44:30 +03:00
levlam
9842d5754f Improve flood control for new webhook connections. 2022-11-22 14:25:52 +03:00
levlam
a9cb897af4 Update TDLib to 1.8.9 and add SslCtx caching. 2022-11-11 15:37:07 +03:00
levlam
95131fe376 Update TDLib. 2022-06-30 20:27:08 +03:00
levlam
3de310c951 Use LambdaPromise instead of PromiseActor. 2022-06-30 19:59:30 +03:00
levlam
06d40edb0a Allow to specify a secret_token in setWebhook to ensure that webhook was set by the domain owner. 2022-05-13 16:39:32 +03:00
levlam
4925532c25 Use td::unique_ptr instead of std::unique_ptr. 2022-03-16 12:52:34 +03:00
levlam
3e9da68537 Use td::FlatHashTable instead of std::unordered_map/set. 2022-03-16 12:41:12 +03:00
levlam
1851ba7eb5 Update TDLib to 1.8.1. 2022-01-31 22:32:10 +03:00
levlam
208fd70d58 Minor improvements. 2022-01-25 18:18:44 +03:00
levlam
997a7408c7 Update TDLib. 2021-09-29 20:34:21 +03:00
levlam
b7af179809 Add logging on errors with non-positive error code. 2021-06-24 17:27:15 +03:00
levlam
7de971ec20 Simplify Query creation and statistics. 2021-06-14 22:47:01 +03:00
levlam
7f9e9fd809 Update TDLib. 2021-05-20 23:51:37 +03:00
levlam
f781aab119 Add webhook response time to log. 2021-02-03 17:32:43 +03:00
levlam
d9c247e5ed Improve warning messages. 2021-01-15 16:54:14 +03:00
levlam
fcdb824f86 Remove pending_update_count_ field. 2021-01-15 16:40:20 +03:00
levlam
789d5bb610 Remove unused field and improve pending_update_count_ field name. 2021-01-15 15:41:55 +03:00
levlam
a1e7249750 Update copyright year. 2021-01-06 17:24:16 +03:00
levlam
525b8ff2f9 Start webhook connection creation in inactive mode. 2021-01-01 16:27:36 +03:00
levlam
72b3f6ea4d Improve webhook updates delaying. 2020-11-26 19:12:19 +03:00
levlam
1f8116b21d Improve log messages. 2020-11-26 18:09:18 +03:00
levlam
4d025b1c9b Safer handling of negative monotonic time. 2020-11-21 17:46:18 +03:00
levlam
79134758a8 Use "time" for monotonic time variables. 2020-11-21 17:38:11 +03:00
levlam
74559bab15 Telegram Bot APi server initial commit. 2020-11-03 19:34:10 +03:00