Commit Graph

45 Commits

Author SHA1 Message Date
Giuseppe Marino d6950e5d80
Merge Version 6.3.2 2022-12-03 20:02:12 +01:00
levlam aa05180325 Update TDLib and improve TQueue GC. 2022-10-14 00:46:54 +03:00
levlam 018b4fc6f7 Stop ClientManager watchdog at the beginning of closing. 2022-10-13 01:23:05 +03:00
levlam b44bc1cabd Update TDLib and use AsyncFileLog instead of FileLog. 2022-10-09 20:16:45 +03:00
levlam 3be8cb6323 Move dump_statistics to ClientManager. 2022-10-06 22:18:36 +03:00
levlam 022bed651c Move TQueue::run_gc to ClientManager. 2022-10-06 21:42:33 +03:00
levlam 337b657f9c Add watchdog for ClientManager's thread. 2022-10-05 00:06:48 +03:00
levlam 04825c4b70 Move ClientManager to a separate thread. 2022-10-04 18:27:50 +03:00
levlam 254ad97805 Update TDLib to 1.8.7 and support extended_media in sendInvoice. 2022-09-23 20:29:42 +03:00
levlam 27bb4831f6 Add active_request_count and active_file_upload_bytes to bot statistics. 2022-09-18 02:54:22 +03:00
levlam 11d27e3e52 Don't output empty fields in bot statistics. 2022-09-18 02:15:53 +03:00
levlam 5eb24c7e63 Improve statistics retrieval. 2022-08-24 15:48:27 +03:00
Giuseppe Marino bcc8c6e60e
Merge version 6.2 2022-08-21 20:16:05 +02: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
Giuseppe Marino 58168e2df3
Merge version 6.1 2022-06-30 15:51:45 +02: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
Giuseppe Marino edcb8529e6
Merge version 6.0.1 2022-05-01 10:45:29 +02: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
Giuseppe Marino f2e7e45fc0
Merge remote-tracking branch 'upstream/master' into merge-upstream 2022-02-01 18:28:35 +01:00
levlam 208fd70d58 Minor improvements. 2022-01-25 18:18:44 +03:00
Giuseppe Marino 188fa9d8b0
Merge remote-tracking branch 'upstream/master' into merge-upstream 2021-11-05 14:52:04 +01:00
levlam 5130c52676 Add is_active to bot statistics. 2021-10-27 19:43:41 +03:00
levlam 6aa090a43a Improve MultiPromiseActorSafe usage. 2021-10-26 14:28:09 +03:00
levlam e715de9e1c Count number of active clients with a given tqueue_id. 2021-09-30 23:23:41 +03:00
Giuseppe Marino 97872f5b87
merge conflict 2021-09-22 11:46:33 +02:00
Andrea Cavalli 4a4ef1b3ca Update version to 5.3.1, Update tdlib to 1.7.6. 2021-08-05 11:29:14 +02:00
levlam eafb9375d2 Allow to change tag verbosity level. 2021-08-02 23:57:11 +03:00
Giuseppe Marino d7f30ca00e
Fix #64 2021-06-28 23:39:42 +02:00
Giuseppe Marino 3e79d99dfc
tdlight is no more 2021-06-28 13:50:13 +02:00
Giuseppe Marino a1510e45bb
fix conflict 2021-06-28 13:41:22 +02:00
levlam 8a3d43daa9 Output TQueue load time to log. 2021-06-26 04:22:29 +03:00
levlam 08a92a2347 Use absolute file paths. 2021-06-22 21:26:41 +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
Giuseppe Marino d6a99d8519
Fix conflict 2021-03-16 18:48:23 +01:00
Luckydonald de05b42272
Stats: json format (#22)
The work regarding #17.

With 374928c we could merge a working version where the json is still missing a few fields, to iterate from there.

It is available via the normal stats endpoint by calling /json as the path.
Everything else will have the old text style.
2021-01-24 18:09:53 +01:00
levlam baa16f5e87 Improve HTTP error code for requests with unacceptable bot token. 2021-01-15 15:33:57 +03:00
levlam a1e7249750 Update copyright year. 2021-01-06 17:24:16 +03:00
Jannik 954bc416c3
User only methods (#25)
Co-authored-by: code1mountain <none>
Co-authored-by: luckydonald <mac2019.git@luckydonald.de>
2021-01-02 12:32:34 +01:00
Luckydonald c08d466be0
Stats: hide sensible data (#24)
Adds the --stats-hide-sensible-data flag (Docker: $TELEGRAM_STAT_HIDE_SENSIBLE_DATA=1), removing the bot token and the webhook url from the stats endpoint.
2020-12-15 17:43:20 +01:00
Jannik 100a7cc846
Allow Users to use the bot api (#19)
Co-authored-by: Jannik <none>
2020-12-12 00:45:36 +01: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