Commit graph

211 commits

Author SHA1 Message Date
Bohdan Horbeshko d2f35075e3 Support dice messages 2022-02-05 10:46:24 -05:00
Bohdan Horbeshko 6f4cd5547a Support animated emoji messages 2022-02-05 10:19:18 -05:00
Bohdan Horbeshko ab1af45247 Support contact messages 2022-02-05 09:49:21 -05:00
Bohdan Horbeshko 00f6e41e71 Support venue messages 2022-02-05 09:10:08 -05:00
Bohdan Horbeshko 4b2969925b Fix status caching and send status on subscription 2022-02-05 05:21:56 -05:00
Bohdan Horbeshko 39d38fb487 Fix links to tiny images 2022-02-04 10:56:34 -05:00
Bohdan Horbeshko f7e46d5033 Use UniqueId for file URLs 2022-02-04 10:41:55 -05:00
Bohdan Horbeshko 7dc106a090 Refine download priorities 2022-02-03 16:01:38 -05:00
Bohdan Horbeshko 10e5f31b74 Add MessageForwardOriginMessageImport support 2022-02-03 15:25:45 -05:00
Bohdan Horbeshko fe5ca09c7c Add leave! command to leave group as owner 2022-02-03 14:29:16 -05:00
Bohdan Horbeshko 6701335302 Add /unban / /promote commands 2022-02-03 13:51:27 -05:00
Bohdan Horbeshko 9b4830b980 Support passing user ids to commands that accept @usernames 2022-02-02 07:49:05 -05:00
Bohdan Horbeshko 9a49d66279 Add /mute / /unmute commands 2022-01-31 23:57:17 -05:00
Bohdan Horbeshko de31fa0ad2 Refactor the /members command 2022-01-31 22:23:37 -05:00
Bohdan Horbeshko 86b736ec0d Add /link command to retrieve chat invite link 2022-01-31 22:14:06 -05:00
Bohdan Horbeshko bd281385c3 Another attempt to block unwanted auth requests 2022-01-31 21:23:46 -05:00
Bohdan Horbeshko 2bd15ce6f2 Fix SIGSEGV when a message sender is nil 2022-01-31 19:58:50 -05:00
Bohdan Horbeshko 3cdb625c5e Mark expired online statuses as away 2022-01-31 09:31:05 -05:00
Bohdan Horbeshko 8c20aaa30d Fix links to not-yet-downloaded files 2022-01-31 02:05:42 -05:00
Bohdan Horbeshko 540c6cd546 Unhardcode some paths 2022-01-27 01:57:46 -05:00
Bohdan Horbeshko 6da0fd56ff Force downloading the chat photo when vCard is requested 2022-01-26 21:09:19 -05:00
Bohdan Horbeshko 7261b60916 Fix help message for /s 2022-01-24 11:02:50 -05:00
Bohdan Horbeshko 6eb0e5f15f Migrate back to the upstream go-tdlib 2022-01-17 15:45:40 -05:00
Bohdan Horbeshko 0b79d6feb1 Refactor some chat commands 2022-01-17 14:58:16 -05:00
Bohdan Horbeshko e260668f91 Revert "Don't subscribe to chat updates with no conversations"
This reverts commit 23f2a85301.
(Why did I add this at all, lol.)
2022-01-17 12:19:59 -05:00
Bohdan Horbeshko 3db096734f File download priority fine-tuning 2022-01-10 04:30:18 -05:00
Bohdan Horbeshko 77f9c9f74e ForwardInfo refactoring 2022-01-10 04:29:50 -05:00
Bohdan Horbeshko 9f04ed51bd Make /s replace the whole message; fix replies and whitespace corruption 2022-01-08 05:59:57 -05:00
Bohdan Horbeshko ee6653c0c6 /d / /s / /search commands refactoring 2022-01-06 07:13:57 -05:00
Bohdan Horbeshko 570601d1b8 Fix retrieving only 1 message in /history 2022-01-06 04:27:25 -05:00
Bohdan Horbeshko 077edae986 Add keeponline option 2022-01-05 16:04:22 -05:00
Bohdan Horbeshko d48cb8b586 Fix strel ochka 2022-01-02 23:08:55 -05:00
Bohdan Horbeshko f4e4692a94 Multiple resources handling 2022-01-02 22:54:13 -05:00
Bohdan Horbeshko 462a537021 Fix subscriptions after logging in 2021-12-31 18:34:04 -05:00
Bohdan Horbeshko d36f4449c9 Temporarily switch to a fork of go-tdlib 2021-12-28 19:53:38 -05:00
Bohdan Horbeshko f2f20e680b Fix %!(MISSING) and other formatting issues 2021-12-18 11:04:24 -05:00
Bohdan Horbeshko ad6e92e6d6 Lower the interactor error to warning 2021-12-04 22:32:12 -05:00
Bohdan Horbeshko 2a1c09fcdd Fix a crash on big emojis 2021-12-04 22:27:14 -05:00
Bohdan Horbeshko 105f5017c3 Migrate to TDlib 1.7.9 2021-12-04 13:10:54 -05:00
bodqhrohro bc37cf0c4f Apply formatting to edited messages 2020-01-13 19:22:45 +02:00
bodqhrohro 23f2a85301 Don't subscribe to chat updates with no conversations 2020-01-10 11:13:25 +02:00
bodqhrohro 70383bee12 Convert formatting entities to Markdown 2020-01-09 23:16:40 +02:00
bodqhrohro b8fcac6ae2 Resend chat statuses on probe presence 2020-01-05 15:03:10 +02:00
bodqhrohro a435a0a556 Display existing symlink errors as warnings 2019-12-30 23:51:06 +02:00
bodqhrohro 33e564c62e Remove excessive listener that caused stucking after 1000 updates 2019-12-30 23:26:23 +02:00
bodqhrohro 7ea5e9ac73 Asynchronous message processing with guaranteed sequential per-chat delivery 2019-12-30 07:01:56 +02:00
bodqhrohro 307d5136d4 Verbose errors for message formatting failures 2019-12-30 06:56:36 +02:00
bodqhrohro 536451f648 Make the chats/users cache thread-safe 2019-12-28 04:35:40 +02:00
bodqhrohro ed8fd6415c Migrate some comments from Zhabogram; change queue behaviour 2019-12-22 03:04:45 +02:00
bodqhrohro 915b7fe1de Make status updates asynchronous 2019-12-21 04:16:43 +02:00
bodqhrohro 7a2e355111 Add comments for auth stages 2019-12-21 02:04:47 +02:00
bodqhrohro d439b7a581 Respond for message sending errors 2019-12-21 01:44:21 +02:00
bodqhrohro ab914b0ff7 More relogin fixes, prevent crashing by commands when offline 2019-12-19 22:29:36 +02:00
bodqhrohro 18b5bc0935 Relogin fix 2019-12-18 23:00:23 +02:00
bodqhrohro 05a9aca537 Reconnect fix 2019-12-17 03:56:11 +02:00
bodqhrohro 10aae376f7 Catch timeout setting 2019-12-16 03:02:53 +02:00
bodqhrohro 3918686f21 Connect on probe presence (for clients that do not send online presence first) 2019-12-15 21:30:54 +02:00
bodqhrohro e43a0c3144 Fix breaking the TDlib data on graceful exit 2019-12-15 04:26:07 +02:00
bodqhrohro 74a872a30b Timezone support 2019-12-12 00:48:35 +02:00
bodqhrohro 9e785a56d2 lint 2019-12-10 20:49:42 +02:00
bodqhrohro 503e3e0b62 Add /members command 2019-12-08 20:44:17 +02:00
bodqhrohro ad1beafeb3 Add /history command 2019-12-08 18:19:35 +02:00
bodqhrohro fb36f53f3a Add /search command 2019-12-08 18:04:26 +02:00
bodqhrohro 2d3e8ebbb6 Add /delete command 2019-12-08 17:35:27 +02:00
bodqhrohro 4df1643312 Add /close command 2019-12-08 17:25:29 +02:00
bodqhrohro 49423147e3 Add /leave command 2019-12-08 17:08:55 +02:00
bodqhrohro 354887d724 Add /ban command 2019-12-08 16:24:51 +02:00
bodqhrohro 4b099fba41 Add /kick command 2019-12-08 15:58:17 +02:00
bodqhrohro 9f54309b30 Add /invite command 2019-12-08 15:32:43 +02:00
bodqhrohro 4679c01a99 Add /block and /unblock commands 2019-12-08 03:54:09 +02:00
bodqhrohro 5da39f4aa9 Add /secret and /group commands 2019-12-08 01:36:29 +02:00
bodqhrohro 58aefc5232 Add /supergroup and /channel commands 2019-12-07 23:26:58 +02:00
bodqhrohro c5996f304c Add /join command 2019-12-07 23:08:12 +02:00
bodqhrohro b9c07b6f16 Treat contact lookups as successful if user is found but chat is not 2019-12-07 21:25:37 +02:00
bodqhrohro ea0d0df226 Add /add command 2019-12-07 19:56:53 +02:00
bodqhrohro 589876eef5 Add replace command 2019-12-07 18:37:14 +02:00
bodqhrohro 3e791db201 Prevent possible segfault on picking message IDs for deletion 2019-12-07 16:48:26 +02:00
bodqhrohro 0013baa247 Add delete command 2019-12-06 01:21:39 +02:00
bodqhrohro ec1197f83c Add /config command 2019-12-05 21:56:12 +02:00
bodqhrohro 753a488c9d Add /set* commands 2019-12-05 20:13:17 +02:00
bodqhrohro eeba07eeb0 Add logout command 2019-12-05 01:10:08 +02:00
bodqhrohro c22008d991 Send unavailable status to cached chats on disconnect 2019-12-05 00:14:56 +02:00
bodqhrohro 8cd6387552 Make chats/users cache private 2019-12-04 23:47:44 +02:00
bodqhrohro fa841bfa8b Replace Itoa with FormatInt 2019-12-04 21:29:57 +02:00
bodqhrohro 133d787d38 Fix lossy int64->int32 conversion 2019-12-04 20:37:46 +02:00
bodqhrohro 5b82d5d718 Improve debug logging of Telegram updates 2019-12-04 18:22:22 +02:00
bodqhrohro 3ce5081800 Fix segfault on graceful exit 2019-12-04 00:43:48 +02:00
bodqhrohro 8949290c52 Handle downloaded files 2019-12-04 00:17:36 +02:00
bodqhrohro 0c0c8e777a Handle edits and deletions 2019-12-03 23:14:32 +02:00
bodqhrohro 9d31a390a8 Send messages to Telegram 2019-12-03 18:48:41 +02:00
bodqhrohro 90f0490e16 Support commands in mapped chats 2019-12-03 02:32:53 +02:00
bodqhrohro 40b3c6a768 lint 2019-12-02 18:32:32 +02:00
bodqhrohro ca4923f563 Tests for message formatters, fix broken timestamp tests 2019-12-02 18:25:55 +02:00
bodqhrohro 9c25d4ad8f Handle updates of newmessage 2019-12-01 15:13:45 +02:00
bodqhrohro 97dfd1cc00 Fix calculating SHA1 for photo updates 2019-12-01 15:12:55 +02:00
bodqhrohro 1568e29156 Fix last-seen-at format 2019-12-01 15:12:15 +02:00
bodqhrohro 7030ec0f1b Handle updates of newchat 2019-11-30 02:41:22 +02:00
bodqhrohro 6332ea6d28 Handle updates of userstatus 2019-11-29 13:48:27 +02:00
bodqhrohro dbe87fafa8 Handle updates of user status 2019-11-29 02:51:41 +02:00
bodqhrohro bcf222b53d Fetch user info and chats on successful authorization 2019-11-27 00:14:06 +02:00
bodqhrohro 9a292fba94 Add help command 2019-11-26 02:04:11 +02:00
bodqhrohro a89629ab20 Implement an own authorizer 2019-11-25 21:42:11 +02:00
bodqhrohro 653b1bde94 Telegram authorization 2019-11-24 19:10:29 +02:00
bodqhrohro c0c21a35a4 Handle unsubscribe presence too, improve logging 2019-11-20 23:45:30 +02:00
bodqhrohro f0c0d0ba94 Save sessions on exit 2019-11-19 22:25:14 +02:00
bodqhrohro 47cf94ad01 Tests for log constants 2019-11-12 20:02:06 +02:00
bodqhrohro a5c97d68e7 Spawn TDlib instances for recovered sessions 2019-11-12 17:50:25 +02:00
bodqhrohro 7185d4ac9b Fix presence handling and lockup on TDlib instance creation 2019-11-07 23:09:53 +02:00
bodqhrohro 55797b98a0 telegram package refactoring 2019-11-05 02:25:15 +02:00
bodqhrohro 0f047c3816 Set logging level for Logrus and TDlib from config 2019-11-05 02:09:07 +02:00
bodqhrohro aaf7233c89 Presence/iq handling and rudimental telegram client 2019-11-04 00:15:43 +02:00