Commit graph

471 commits

Author SHA1 Message Date
Nameless
c020ba1ea7
When entered markdown formatted text, parse it to display propely on official clients (#140) 2020-07-15 23:26:42 +03:00
Nameless
4aaf9d9d1f
update readme (#142)
* Add contacts shortcut and link to config file

* Remove logging in utils

* Remove unused imports and create script for checking formatting

* Remove unused import <Iterable> in models

* Fix check.sh script

* Reformat check.sh

* Update isort

* Add check flag for black
2020-07-15 23:26:14 +03:00
Nameless
b37bba8fb7
File picker (#136)
* File picker

* Add docstring to show in help

* Update doc

* Fix update_file: invalid get msg

* Catch ValueError when removing messages

* Ask to whether to upload file as document or compressed

* Clear status after sending file
2020-07-15 18:50:35 +08:00
Nameless
39a1e59f35
Use different storage model for msgs (#134)
* Use different storage model for msgs

* Do not sort if msg id already in right order
2020-07-13 20:51:14 +08:00
Nameless
d5e557beff
128: Update readme with correct configuration (#135) 2020-07-13 18:59:59 +08:00
Paul Nameless
866a145a56 Release 0.4.0 2020-07-13 14:22:39 +08:00
Nameless
f838f91bfe
Expand user when getting file path (#133) 2020-07-13 14:17:24 +08:00
Nameless
111685170c
Fix disappearing msgs (#132) 2020-07-13 13:52:51 +08:00
Nameless
aeab7c1564
Add <secret> chat flag (#121) 2020-07-09 09:12:26 +03:00
Alex
e078199798
Update new chat (#107)
* process updateNewChat

* workaround

* wip

* inactive chats

* use add_chat

* respond to comments

* support chat  removal

* respond to comments

* fix mypy issue

Co-authored-by: Alexander Zveruk <alexander.zveruk@just-eat.com>
2020-07-09 09:38:46 +08:00
Nameless
532fa0154a
Show list of contacts (#119)
* Get contacts

* Count min user name column length, sort by user name

* Fix black formatting

* Fix black formatting

* Order users in contacts by last seen status
2020-07-08 18:40:44 +08:00
Paul Nameless
f168fcf01d Release 0.3.0 2020-07-06 12:11:45 +08:00
Nameless
7b03096bd0
Merge pull request #117 from paul-nameless/improve-user-typing-label
Improve user typing label
2020-07-05 19:55:26 +08:00
Alex
7ceb4dcd9c
View polls (#110)
* poc

* refactor

* fix isort

* respond to comments

* use "closed" woring
2020-07-05 19:53:38 +08:00
Nameless
c567e3c599
Do not pipe stderr, cause it hides ffmpeg output (#115)
* Do not pipe stderr, cause it hides ffmpeg output

* Improve cmd failed message
2020-07-05 19:51:56 +08:00
lightme16
8a44f60ebf Improve user typing label 2020-07-05 12:25:39 +03:00
Nameless
568e15aecb
Check if msg index exists firstly: causes KeyError in logs (#114) 2020-07-05 11:53:59 +03:00
Nameless
a053fdefec
Update README with sticker info, telegram chat and key bindings (#113)
* Update README with sticker info, telegram chat and key bindings

* Update screenshot

* Rename README.md -> readme.md
2020-07-04 18:53:07 +08:00
Nameless
73d3e535bb
Merge pull request #111 from paul-nameless/custom-cmd
Allow to open current msg with custom cmd
2020-07-04 14:28:52 +08:00
Paul Nameless
453cdbcc45 Improve logging (add filename) and add help string for open_current_msg 2020-07-04 14:14:05 +08:00
Nameless
af47b1e7c8
Merge pull request #112 from paul-nameless/implement-msg-types
Implement messageBasicGroupChatCreate and messageBasicGroupChatCreate msg types
2020-07-04 13:48:26 +08:00
Paul Nameless
af7f1ee202 Update README key bindings 2020-07-04 13:23:16 +08:00
Paul Nameless
54fb4e9f00 Implement messageBasicGroupChatCreate and messageBasicGroupChatCreate msg types 2020-07-04 13:22:13 +08:00
Paul Nameless
fcfa89902a Allow to open current msg with custom cmd 2020-07-04 13:12:43 +08:00
Nameless
5b53495b60
Display shorter date in chats (#109) 2020-07-03 22:30:46 +03:00
Nameless
9224de4110
Select msg and go to previous one with ctrl+space (#108) 2020-07-03 22:20:36 +03:00
Alex
5b660f47eb
Show last msg sender user name in group chat preview (#104)
* wip

* preview last msgs sender for group chats

* user name for  actions

* refactor

* another refactor

* remove :
2020-07-03 09:46:07 +03:00
Nameless
4460c5f94b
View animated stickers thumbnail (#106)
* Draft: adding lock to message update and using indexes for msgs

* Fix black formatting

* Rename msg_ids->msg_idx to better represent what variable contains

* Fix black formatting

* Check if msg_id in not_found

* Use lock in udpate_handler

* Add shortcut to jump to replied msg

* Open preview for animated sticker and show it's emoji

* Remove lock

* Show if sticker is animated
2020-07-03 10:27:47 +08:00
Nameless
2a0c726792
jump to reply (#105)
* Draft: adding lock to message update and using indexes for msgs

* Fix black formatting

* Rename msg_ids->msg_idx to better represent what variable contains

* Fix black formatting

* Check if msg_id in not_found

* Use lock in udpate_handler

* Add shortcut to jump to replied msg

* Show correct error msg when trying to jump to reply msg which does not replies

* Remove lock
2020-07-03 10:17:30 +08:00
Nameless
eabe39d3c4
Add indexes for msgs (#91)
* Draft: adding lock to message update and using indexes for msgs

* Fix black formatting

* Rename msg_ids->msg_idx to better represent what variable contains

* Fix black formatting

* Check if msg_id in not_found

* Use lock in udpate_handler

* Remove lock
2020-07-03 10:05:12 +08:00
Nameless
723bd5cfeb
Cleanup cache: delete files older than days specified in config (#103)
* Cleanup cache: delete files older than days specified in config

* Use subprocess.Popen instead of os.system (does not wait for completion)

* Do not print infor about cleanup to stdout
2020-07-02 21:00:35 +03:00
Paul Nameless
07c6ea9b7f Release 0.2.0 2020-07-02 09:17:29 +08:00
Nameless
9604c302bc
Merge pull request #102 from paul-nameless/fix-decorator
Fix bug in update handler decorator
2020-07-01 20:13:55 +08:00
Paul Nameless
7fca99e377 Use discard on set instead of catching exception 2020-07-01 20:12:45 +08:00
Paul Nameless
718bf5a7a7 Fix bug in update handler decorator 2020-07-01 20:01:53 +08:00
Nameless
4e68561a95
Merge pull request #101 from paul-nameless/92
Draw users with different colors
2020-07-01 20:01:01 +08:00
Paul Nameless
7f1bdab07e Remove added accidentally line 2020-07-01 19:40:14 +08:00
Paul Nameless
10b2778309 Use 16 colors by default to color users 2020-07-01 19:36:15 +08:00
Paul Nameless
ebb251cb4d Specifiy range of colors to use for color users and make draw colors in chat pane 2020-07-01 14:43:38 +08:00
Paul Nameless
e0e4a4f46d Update readme and configure color range to use 2020-07-01 11:33:11 +08:00
Paul Nameless
ac972ef6c3 Do not use too bright color 2020-07-01 10:36:34 +08:00
Paul Nameless
06db6981b5 Draw users with different colors 2020-07-01 10:31:51 +08:00
Nameless
3ceb816961
remove msgs (#98)
* Delete msgs in batch
2020-06-30 17:50:38 +03:00
Nameless
d560eee3b7
Check msg not-found cache (#99)
* Check msg not-found cache

* Fix syntax error
2020-06-30 17:48:40 +03:00
Nameless
7ec5742a17
Display caption (when doc sent with text) (#97) 2020-06-30 17:47:58 +03:00
Nameless
9c155811f5
Merge pull request #95 from paul-nameless/change-ffmpeg-cmd-linux
Change default ffmpeg cmd for Linux
2020-06-30 15:10:08 +08:00
Nameless
60278f98ef
Merge pull request #94 from paul-nameless/more-mypy-checks
More strict mypy checks
2020-06-30 15:09:43 +08:00
Paul Nameless
4cea85c026 Update type hints after merging master 2020-06-30 15:08:44 +08:00
Paul Nameless
8c2316b74a Merge branch 'master' into more-mypy-checks 2020-06-30 15:04:24 +08:00
Nameless
1034d4b952
Merge pull request #93 from paul-nameless/status-panel
Introduce top status panel
2020-06-30 15:00:12 +08:00