Commit Graph

220 Commits

Author SHA1 Message Date
Alexander Pankratov
d2b66eae0b Update to Madeline v7 to support updated Telegram API 2021-12-03 22:39:38 +03:00
Alexander Pankratov
c67691541c Unlimited number of connections per IP 2021-10-06 01:30:45 +03:00
Alexander Pankratov
34b6ed196f Fix preview missing mime 2021-08-16 04:44:35 +03:00
Alexander Pankratov
c0394e809c Update Dockerfile 2021-08-16 03:59:07 +03:00
Alexander Pankratov
c466905fab Properly format exceptions from Amp 2021-04-27 00:48:47 +03:00
Alexander Pankratov
b60d2d0906 Compatibility with latest madeline 2021-04-27 00:27:56 +03:00
Alexander Pankratov
959ebf02c9 Reduce logs 2 2021-04-19 23:11:26 +03:00
Alexander Pankratov
bbacc70f9e Reduce logs 2021-04-19 22:58:35 +03:00
Alexander Pankratov
3b79e18bb3 Add message after session start 2021-04-06 16:10:52 +03:00
Alexander Pankratov
0a8fef9671 Websocket error if no sessions available 2021-02-27 03:27:57 +03:00
Alexander Pankratov
721dd8ca90 Allow fetch old updates on start 2021-02-27 02:19:59 +03:00
Alexander Pankratov
adc4e3dd9d One more EventHandler fix 2021-02-14 03:13:35 +03:00
Alexander Pankratov
38246890f7 EventHandler destruct fix 2021-01-17 02:02:51 +03:00
Alexander Pankratov
7c833ba904 Fix unlinkSessionFile method 2021-01-13 23:51:08 +03:00
Alexander Pankratov
032349387f Fix critical bug in healthcheck. Use repeat instead of delay. 2020-11-29 01:23:01 +03:00
Alexander Pankratov
63932ab2be Health check upgrade: run check loop as child process to increase stability. 2020-11-09 03:07:34 +03:00
Alexander Pankratov
d490a460db Small fixes after madeline upgrade 2020-11-03 03:55:03 +03:00
Alexander Pankratov
78e30e9570 Fix types in settings from request 2020-11-01 23:12:33 +03:00
Alexander Pankratov
b5c1408e96 Start health check with delay 2020-11-01 01:09:44 +03:00
Alexander Pankratov
1dbbef024a Health check sessions 2020-10-08 02:19:05 +03:00
b39db1dfa3
Enable async right away
unsetEventHandler will be callForked internally anyway
2020-10-06 22:38:12 +02:00
Alexander Pankratov
ed7467871a Disable exceptions catch from sessions 2020-10-05 01:59:50 +03:00
Alexander Pankratov
3be5e22927 Support all db providers from madeline 2020-10-03 02:52:57 +03:00
Alexander Pankratov
296df55a29 Restart on fatal exception 2020-10-03 02:27:32 +03:00
Alexander Pankratov
1e31286e88 Fix getMediaPreview 2020-09-13 00:20:03 +03:00
Alexander Pankratov
3ebf75d0db Move image to TelegramRSS 2020-08-16 01:57:53 +03:00
Alexander Pankratov
1deff5ac24 Add image for default preview. 2020-08-16 00:12:17 +03:00
Alexander Pankratov
d6595a9a81 Codestyle 2020-08-15 00:02:38 +03:00
Alexander Pankratov
1d120900e0 copyMessages fix 2020-08-08 22:21:31 +03:00
Alexander Pankratov
53e5a43862 getMessages supergroup fix 2020-07-22 14:15:45 +03:00
Alexander Pankratov
71c56b053c Individual settings for sessions 2020-07-01 22:28:54 +03:00
Alexander Pankratov
be5d7e2749 Ability to redefine env file path 2020-06-25 01:33:18 +03:00
Alexander Pankratov
3c6d7e0184 Exception if no api_id or api_hash provided 2020-06-25 00:44:34 +03:00
Alexander Pankratov
821fa8fba1 Exception in uploadMediaForm 2020-06-22 22:58:27 +03:00
Alexander Pankratov
4499a9ddbf Start server after all sessions ready. 2020-06-17 23:14:48 +03:00
Alexander Pankratov
277049626e Output name of current session before authorization. 2020-06-17 22:51:42 +03:00
Alexander Pankratov
4754105e32 Docker network whitelist 2020-06-08 01:44:18 +03:00
Alexander Pankratov
0db50ca912 Overlapping entities html render fix 2020-06-08 01:44:18 +03:00
Alexander Pankratov
e654b88521 Bugfix 2020-06-08 01:44:18 +03:00
Alexander Pankratov
f21a0394ff Improve clients initialization 2020-06-08 01:44:08 +03:00
Alexander Pankratov
d97dc6de14 Docker update 2020-06-07 22:10:14 +03:00
Alexander Pankratov
32cb13b6a8 unsetEvent handler fix 2020-05-12 19:00:54 +03:00
Alexander Pankratov
3ad25a7206 Update Dockerfile 2020-05-12 00:14:38 +03:00
Alexander Pankratov
a04797b173 Upload file from request in sendMedia 2020-05-11 01:50:29 +03:00
Alexander Pankratov
b943a87037 Websocket update.
Update add and remove sessions.
2020-05-09 03:35:50 +03:00
Alexander Pankratov
173f48fe8b Support for big files upload 2020-05-08 03:00:18 +03:00
Alexander Pankratov
be3fb56d0c Revert cleanup on destruction. 2020-04-13 20:33:43 +03:00
Alexander Pankratov
e56f2dfdd3 Cleanup on destruct to prevent errors when moving session. 2020-04-13 19:59:28 +03:00
Alexander Pankratov
9e18823534 Trigger EventHandler destruct 2020-04-13 19:56:58 +03:00
Alexander Pankratov
8aaf06bd2f Unset existing event handlers in session. 2020-04-13 19:50:24 +03:00
Alexander Pankratov
59b9faf599 Broken session handling 2.0 2020-04-13 19:32:43 +03:00
Alexander Pankratov
8cb388b6bc Broken session handling 2.0 2020-04-13 19:12:04 +03:00
Alexander Pankratov
c0963c13e8 Improved start for broken sessions 2020-04-13 12:22:13 +03:00
Alexander Pankratov
498effc529 Force stop for event handler 2020-04-13 12:08:55 +03:00
Alexander Pankratov
0409c0c7b9 Start eventHandler for session only if there is listeners on websocket channel.
Fix to do not trigger bot api updates.
2020-04-13 00:34:51 +03:00
Alexander Pankratov
ed4716c4a6 Detection of broken sessions 2020-04-12 22:12:05 +03:00
Alexander Pankratov
4bb3c63edb mediaWebPage support update 2020-04-08 01:52:47 +03:00
Alexander Pankratov
8e538cbb8e mediaWebPage support update 2020-04-08 01:32:08 +03:00
Alexander Pankratov
4badefa67a mediaWebPage support update 2020-04-08 01:13:02 +03:00
Alexander Pankratov
d032a980bd mediaWebPage support 2020-04-08 01:05:19 +03:00
Alexander Pankratov
c5d9b15b0f mediaWebPage fix & update error messages. 2020-04-07 23:20:33 +03:00
Alexander Pankratov
e296836df5 Recursive session search 2020-03-28 13:44:14 +03:00
Alexander Pankratov
7acf384d50 setEventHandler update. 2020-03-05 16:42:09 +03:00
Alexander Pankratov
f238aa2151 Update madelineProto 2020-03-04 00:56:41 +03:00
Alexander Pankratov
e4a3212552 Fix start with broken sessions 2020-02-25 02:22:56 +03:00
Alexander Pankratov
279ccaacb7 Try to fix start with broken sessions 2020-02-25 02:03:13 +03:00
Alexander Pankratov
08f7e4587d Update dependencies. 2020-02-25 01:40:55 +03:00
Alexander Pankratov
f182f9ec5b Session folder fix 2020-02-19 21:52:55 +03:00
Alexander Pankratov
f15f040f79 Revert "allow deploy in root folder". 2020-02-19 19:20:34 +03:00
Alexander Pankratov
2130d9fa9e Whitelist bugfix 2020-02-19 16:55:40 +03:00
Alexander Pankratov
b3c5562fc3 Use standard downloadToStream from MLP 2020-02-16 03:34:29 +03:00
Alexander Pankratov
ee60270a59 Logs via websockets fixes 2020-02-10 05:35:49 +03:00
Alexander Pankratov
e33b121c6f Logs via websockets fixes 2020-02-10 05:26:11 +03:00
Alexander Pankratov
0902e1279c Logs via websockets 2020-02-10 04:50:17 +03:00
Alexander Pankratov
88a5eafcd0 Session start refactor 2020-02-10 02:04:36 +03:00
Alexander Pankratov
dd53cc98bb Upload media from POST request 2020-02-08 03:53:17 +03:00
Alexander Pankratov
320fd42e7d Exit on last session error 2020-02-07 01:18:21 +03:00
Alexander Pankratov
1169f271ed Check if session exists 2020-02-06 03:07:38 +03:00
Alexander Pankratov
60e53afcd9 Optimize session initialization on server start. 2020-02-06 02:54:22 +03:00
Alexander Pankratov
58510aca4a Custom settings in addSession 2020-02-06 02:52:47 +03:00
Alexander Pankratov
e593d5cc1d Increase connection timeout to 10 minutes. 2020-02-01 01:33:49 +03:00
Alexander Pankratov
55715e3b71 Catch all exceptions 2020-01-31 22:26:15 +03:00
Alexander Pankratov
2e9f2c0ec1 Server loop stop fix 2020-01-27 01:53:25 +03:00
Alexander Pankratov
abe9653c6d Start session bugfix 2020-01-26 23:47:27 +03:00
Alexander Pankratov
1ecbcb5144 Router variable name update 2020-01-26 23:32:54 +03:00
Alexander Pankratov
feaf01fd26 setEventHandler for new sessions 2020-01-26 23:29:23 +03:00
Alexander Pankratov
86fadaf765 AddSession bugfix 2020-01-24 18:33:31 +03:00
Alexander Pankratov
01e3da9b3b AddSession bugfix 2020-01-22 14:42:05 +03:00
Alexander Pankratov
2ff9397afc downloadToResponse function 2020-01-20 23:14:16 +03:00
Alexander Pankratov
cdcea13882 downloadToResponse function 2020-01-20 22:59:33 +03:00
Alexander Pankratov
a9b118d5b2 Codestyle 2020-01-20 04:38:14 +03:00
Alexander Pankratov
89b90be411 Sessions fixes 2020-01-20 04:09:54 +03:00
Alexander Pankratov
8a11ca7524 Sessions fixes 2020-01-20 04:04:39 +03:00
Alexander Pankratov
6ef127e9a8 downloadToCallable for media. 2020-01-20 03:13:15 +03:00
Alexander Pankratov
a42356592e Event handler for not authorized sessions 2020-01-19 21:04:07 +03:00
Alexander Pankratov
b67e6a828a Event handler for not authorized sessions 2020-01-19 20:42:46 +03:00
Alexander Pankratov
df208e0122 Debug echo udpates 2020-01-19 19:35:14 +03:00
Alexander Pankratov
4058eb5ce6 Session management rewrite 2020-01-19 19:27:41 +03:00
Alexander Pankratov
f666cbd5c1 Session management 2020-01-19 06:17:14 +03:00
Alexander Pankratov
8402a56f48 jsonrpc websocket format 2020-01-16 01:50:12 +03:00