Commit graph

448 commits

Author SHA1 Message Date
Nameless
44935ba908
Merge pull request #165 from paul-nameless/show-chat-info
Show chat info with <c> shortcut in msg panel
2020-07-27 20:06:18 +08:00
Nameless
5cf8ed016f
Merge pull request #166 from paul-nameless/fix-glitch
Fix drawing glitch with chat vertical separator
2020-07-27 20:05:58 +08:00
Paul Nameless
4c3ddbc879 Split big function into smaller 2020-07-27 20:04:09 +08:00
Paul Nameless
85811a50d9 Use break in a loop 2020-07-27 19:51:21 +08:00
jugendhacker
6452604186
Change AUR package to version following releases (#153)
* Change from telegram-tg-git to telegram-tg

* Add hint for developement version (telegram-tg-git)
2020-07-26 15:15:12 +08:00
Paul Nameless
3a6814f3b0 Fix drawing glitch with chat vertical separator 2020-07-26 14:16:31 +08:00
Paul Nameless
bf266c7999 Show chat info with <c> shortcut in msg panel 2020-07-26 14:12:56 +08:00
Nameless
ef09ba6e7b
Show user info (#161)
* Show user info

* Add block argument to get_user_full_info call

* Make consistent tdlib API
2020-07-25 09:36:08 +08:00
Paul Nameless
34a7ea0d4d Remove comma 2020-07-25 09:31:11 +08:00
Paul Nameless
98dbd21beb Make consistent tdlib API 2020-07-24 16:00:38 +08:00
Nameless
f94188a64d
Fix invalid width count when resizing and terminal width is uneven (#164) 2020-07-24 10:12:42 +08:00
Paul Nameless
d674c1d430 Add block argument to get_user_full_info call 2020-07-23 17:52:05 +08:00
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