Commit graph

212 commits

Author SHA1 Message Date
Bohdan Horbeshko 18a17cb7a8 Fix crash on login 2023-01-23 02:30:02 -05:00
Bohdan Horbeshko d3c6360e3c Separate labels for OOB messages 2023-01-17 21:57:38 -05:00
Bohdan Horbeshko 559d6443e5 Make OOB compatible with RawMessages 2023-01-16 08:02:41 -05:00
Bohdan Horbeshko b3b53b6145 OOB 2023-01-15 20:35:13 -05:00
Bohdan Horbeshko ddc9c8ff76 Make commands not bound to a certain chat available as transport commands too 2022-08-15 06:51:09 -04:00
Bohdan Horbeshko e9e65b6778 Registration support 2022-08-15 06:10:29 -04:00
Bohdan Horbeshko 710a88cd7d Update the nickname in existing subscriptions on re-subscription 2022-06-30 17:22:44 -04:00
Bohdan Horbeshko e2edbe37ea gofmt 2022-06-29 20:33:51 -04:00
Bohdan Horbeshko 5628a15ac4 Update the contact nickname when a chat title has changed 2022-06-29 20:10:39 -04:00
Bohdan Horbeshko 38ffdb9e47 Retrieve Bio / Description for vCard desc / note 2022-06-29 09:56:27 -04:00
Bohdan Horbeshko 493c49cde5 Same robust file retrieval for calculating avatar SHA1 and Base64 2022-06-25 16:58:15 -04:00
Bohdan Horbeshko ebc2f244d7 Support /join @publicgroup syntax 2022-06-22 14:03:18 -04:00
Bohdan Horbeshko 5698ce62c0 Affect the delete icon with the asciiarrows option 2022-06-22 13:19:21 -04:00
Bohdan Horbeshko 70841a2bea Always send XMPP messages with a resource 2022-05-26 07:14:38 -04:00
Bohdan Horbeshko ae16fd2a0b Implement robust history fetching 2022-05-18 10:18:47 -04:00
Bohdan Horbeshko b78779dad0 Re-upload files to Telegram instead of exposing a XEP-0363 link 2022-05-15 12:59:54 -04:00
Bohdan Horbeshko 25e8c98c3e Release the authorization lock on client initialization error 2022-05-13 18:32:11 -04:00
Bohdan Horbeshko 86cbbcb8bd gofmt 2022-04-01 12:35:54 -04:00
Bohdan Horbeshko 2f38af12a2 Timezones are expected to ignore DST 2022-04-01 12:29:55 -04:00
Bohdan Horbeshko 17afd3f8c7 Limit the file storage by an optional quota 2022-03-31 21:42:12 -04:00
Bohdan Horbeshko 5c238db1da Improve logging for file download process 2022-03-19 19:53:20 -04:00
Bohdan Horbeshko 976abf68ce Fetch previews for files 2022-03-14 17:57:03 -04:00
Bohdan Horbeshko d6b3ed3aaa Check for nil entity types 2022-03-14 16:00:00 -04:00
Bohdan Horbeshko 8aa5187e2e Fix entity sorting 2022-03-13 08:55:59 -04:00
Bohdan Horbeshko 022a12ce31 Add /forward command 2022-03-12 12:25:53 -05:00
Bohdan Horbeshko c6556eb6b8 Clasp directives to the following span as required by XEP-0393 2022-03-11 20:27:15 -05:00
Bohdan Horbeshko ae8152ad87 Correction: XEP-0393 actually allows preformatted spans 2022-03-11 16:57:52 -05:00
Bohdan Horbeshko 5514bc9d16 Add strikethrough formatting 2022-03-11 12:54:03 -05:00
Bohdan Horbeshko cdbd960ff4 Wrap inline code in single backticks 2022-03-11 12:01:38 -05:00
Bohdan Horbeshko f6e62fe1fd Merge adjacent formatting entities of same kind 2022-03-11 11:12:36 -05:00
Bohdan Horbeshko 7ddc3c4482 Tests for XEP-0393 formatter 2022-03-10 11:25:45 -05:00
Bohdan Horbeshko 404e4f8d3e Affect the edit icon with the asciiarrows option 2022-03-10 07:30:02 -05:00
Bohdan Horbeshko 1b291e55e5 gofmt 2022-03-09 14:16:13 -05:00
Bohdan Horbeshko 699d75552a Move downloaded files to a permanent location 2022-03-09 14:15:56 -05:00
Bohdan Horbeshko 4307f85a04 Add /report command 2022-02-26 14:35:43 -05:00
Bohdan Horbeshko b67e29c0bb Fix a crash on spoilers 2022-02-18 18:41:08 -05:00
Bohdan Horbeshko 72b336a5f5 Support ! prefix for commands in addition to / 2022-02-13 20:45:11 -05:00
Bohdan Horbeshko 915c40f1ee Add an asciiarrows option (for clients that do not support Unicode ones) 2022-02-13 19:05:59 -05:00
Bohdan Horbeshko e38f3897e6 Fix avatars losing && take care of avatar changes 2022-02-11 20:47:54 -05:00
Bohdan Horbeshko a769e80808 Add /schedule command to send a message in certain time 2022-02-10 21:08:43 -05:00
Bohdan Horbeshko 6d7fb5bee4 Add /silent command to send messages without sound 2022-02-09 19:16:44 -05:00
Bohdan Horbeshko bf00e98628 Fix existing tests 2022-02-09 11:32:55 -05:00
Bohdan Horbeshko 3618dadd81 Revert "Fix strel ochka"
This reverts commit d48cb8b586.
2022-02-09 11:30:56 -05:00
Bohdan Horbeshko ec49d5d412 gofmt 2022-02-08 15:25:58 -05:00
Bohdan Horbeshko fe7346a530 Add /ttl command to set time-to-live of messages in secret chats 2022-02-08 15:22:11 -05:00
Bohdan Horbeshko 2a5af5a264 Add rawmessages configuration option 2022-02-08 13:49:49 -05:00
Bohdan Horbeshko 0610479734 Attach resource to presences to prevent unwanted behaviour of some clients 2022-02-08 12:43:51 -05:00
Bohdan Horbeshko 32036e3f90 Fix status update for users who blacklisted you or were online long time ago 2022-02-07 11:21:43 -05:00
Bohdan Horbeshko 5a48600b7a The Proper Subscriptions Filter 2022-02-06 08:25:46 -05:00
Bohdan Horbeshko 9d84965e8b Fix replies to non-text messages 2022-02-05 13:54:35 -05:00
Bohdan Horbeshko 7b90b8e4ae Support poll messages 2022-02-05 11:33:53 -05:00
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