Commit graph

486 commits

Author SHA1 Message Date
Nameless
7a9e31231b
Create directory for logs if missing (#162) 2020-07-23 17:38:06 +08:00
Nameless
bb2d9b889f
Implement messageChatAddMembers, messageChatDeleteMember, messageBasicGroupChatCreate (#160)
* Implement messageChatAddMembers, messageChatDeleteMember, messageBasicGroupChatCreate

* Fix sort imports
2020-07-23 16:48:41 +08:00
Paul Nameless
fb11dafb38 Show user info 2020-07-22 20:39:57 +08:00
Nameless
50b93eb308
Implement creating new group and secret chat ( #150) (#156)
* Create new chat

* Implement creating new group and secret chat, close secret chat when deleted to prevent showing again after restart

* Update readme

* Add doc strings, show error if fzf does not exist

* Fix imports ordering
2020-07-22 19:10:41 +08:00
Nameless
8ea4873780
Add ability to view and send animation (GIFs) (#157)
* Add ability to view and send animation (GIFs)

* Fix black formatting
2020-07-22 16:59:28 +08:00
Nameless
9ee51c589b
Add phone number information (#158) 2020-07-22 16:57:56 +08:00
Alex
120d12cc47
add setup.py (#155)
* add setup.py

* respond to comments
2020-07-22 16:56:00 +08:00
Nicola Stanislao Vitale
58927d73ef
Fix typos (#154) 2020-07-21 19:56:10 +03:00
Paul Nameless
a3626df9ab Release 0.5.0 2020-07-21 21:40:18 +08:00
Nameless
31cd7d3908
Fix get input: returning invalid response (#151)
* Fix get input: returning invalid response

* Remove buff from args
2020-07-21 21:38:21 +08:00
Stefano Pigozzi
ecb8afb4ef
Use the __main__.py special filename for main.py (#118)
* Use the __main__.py special filename for main.py

This allows users to run the program directly with `py -m tg` instead of `py -m tg.main`.

* Updated script in pyproject.toml to reflect the previous rename

* Updated readme.md to reflect the previous rename

* Update readme.md with a better description of how to install the software

* Once installed through flit, the tg command can be used directly

* Fix errors in the readme.md introduced in the previous commit

* Run the folder instead of the script

* Change title
2020-07-21 20:03:52 +08:00
Nameless
0e13cc1cc1
Add ability to delete chat (#145)
* Add ability to delete chat

* Leave chat
2020-07-18 18:49:45 +08:00
Nameless
fbc3e5d07a
Do not draw status panel: it conflicts with another thread (#146)
* Do not draw status panel: it conflicts with another thread

* Remove comment
2020-07-16 19:48:44 +08:00
Nameless
3d682441f2
Fix sending msg: fallback to simple text when failed to parse entities (#147)
* Fix sending msg: fallback to simple text when failed to parse entities

* Fix black formatting
2020-07-16 09:37:35 +03:00
Alex
16b6a5a4d9
Contacts search (#144)
* wip

* improve search displaying

* add next chat support

* navigate chats backwards

* prettify

* add optional param
2020-07-16 14:29:26 +08:00
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