Commit graph

33 commits

Author SHA1 Message Date
FraSharp be065a879d tdlib-*-prebuilts: add darwin-arm64 libtdjson prebuilt
Signed-off-by: FraSharp <s23265@iisve.it>
2022-02-16 22:48:52 +01:00
FraSharp 13a1c1f350 README: add temporary workaround for libtdjson with Apple Silicon SoC based devices
Signed-off-by: FraSharp <s23265@iisve.it>
2022-02-16 22:47:52 +01:00
FraSharp 02f831082b gitignore: ignore .DS_Store
Signed-off-by: FraSharp <s23265@iisve.it>
2022-02-16 22:46:44 +01:00
FraSharp 861a59e8c8 README: tdlib from brew is now [1.8.0]
Signed-off-by: FraSharp <s23265@iisve.it>
2022-02-16 22:36:27 +01:00
FraSharp 22582cab42 arigram: use sender_id instead of sender
* it thrown a KeyError which lead the whole UI not to render.

Stacktrace:
  GNU nano 6.1                                                                             .local/share/arigram/error.log
ERROR [2022-02-16 21:43:03,216] controllers.py:922 - draw | Error happened in draw loop
Traceback (most recent call last):
  File /Users/francescoduca/.local/src/arigram/arigram/controllers.py, line 920, in draw
    fun()
  File /Users/francescoduca/.local/src/arigram/arigram/controllers.py, line 913, in _resize
    self._render()
  File /Users/francescoduca/.local/src/arigram/arigram/controllers.py, line 940, in _render
    self._render_chats()
  File /Users/francescoduca/.local/src/arigram/arigram/controllers.py, line 957, in _render_chats
    self.view.chats.draw(selected_chat, chats, self.model.chats.title)
  File /Users/francescoduca/.local/src/arigram/arigram/views.py, line 234, in draw
    last_msg_sender, last_msg = self._get_last_msg_data(chat)
  File /Users/francescoduca/.local/src/arigram/arigram/views.py, line 267, in _get_last_msg_data
    user, last_msg = get_last_msg(chat, self.model.users)
  File /Users/francescoduca/.local/src/arigram/arigram/views.py, line 631, in get_last_msg
    last_msg[sender].get(user_id),
KeyError: 'sender'

Signed-off-by: FraSharp <s23265@iisve.it>
2022-02-16 22:30:07 +01:00
FraSharp 18403f6907 do: remove poetry update and poetry lock
* they were restoring typed-st to [1.4.3].

Signed-off-by: FraSharp <s23265@iisve.it>
2022-02-16 21:41:20 +01:00
FraSharp 7baa6db12f poetry: upgrade typed-st source to 1.5.2
* typed-st [1.4.3], when compiled with newer clang versions (e.g. Apple Clang 13.0.1) and with --std=c99, throws an implicit declaration, which has been fixed in typed-st [1.5.2].

Stacktrace: ast3/Python/ast.c:4514:9: error: implicit declaration of function '_PyUnicode_DecodeUnicodeEscape' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            v = _PyUnicode_DecodeUnicodeEscape(s, len, NULL, &first_invalid_escape);
                ^
Signed-off-by: FraSharp <s23265@iisve.it>
2022-02-16 21:40:27 +01:00
Ari Archer 686501546a
[README] Color -> Colour
Signed-off-by: Ari Archer <truncateddinosour@gmail.com>
2022-01-01 03:39:30 +02:00
Ari Archer 9bfc08f357
[CORE] improved code, formatting and fixed some bugs
- Added a better `.gitignore`
- Formatted the `do` script better, made it better in general
- Improved instalation and upgrading instructons
- Removed arrow key support
- Imrproved `README.md` formatting
- Improved the runtime (`__main__.py`) script, improved formatting,
  handling of arguments and added docstrings
- Renamed `colors` to `colours`
- Added type hints to the config file and improved how it handles some
  things
- Improved chat action strings (e.g `uploading video` -> `is uploading a video`)
- Made `COPY_CMD` deprecated, using `pyperclip` instead
- Changed dependency for stability from dynamic to exact
  (`python-telegram>=....` to `python-telegram==....`)

Signed-off-by: Ari Archer <truncateddinosour@gmail.com>
2022-01-01 03:21:24 +02:00
Ari Archer b22d3100dc
Fixed formatting and imports 2021-12-13 19:12:59 +02:00
Ari Archer 4afd9bed3a
Push local changes (check description)
- Found more bugs
- Added more TODOs
- Added more functionality to `do`
- Fixed README
- Bump version
- Implement drafts
- Escape sequences in messages are now supported
2021-12-13 19:06:56 +02:00
Ari Archer a6fc06fcc7
Fixed CI, reformatted code, sorted imports 2021-12-04 22:19:55 +02:00
Ari Archer 94ce9fe73c
Implement do push, fixed some API issues and completed more TODOs
- Added drafts
- Fixed some API issues
- Add `do push`
- Added codeQL workflow
2021-12-04 22:15:03 +02:00
Ari Archer c46f7233b5
bump python-telegram from 0.14.0 to >0.15.0 2021-12-03 22:06:55 +02:00
Ari Archer 965607a778
removed unused imports 2021-12-02 20:01:23 +02:00
Ari Archer 52e353e9aa
fixed imports 2021-12-02 19:59:19 +02:00
Ari Archer 0c3a09c2f1
fixed formatting, type checking and imports 2021-12-02 19:57:17 +02:00
Ari Archer 4a0c9a26eb
fixed poetry build dependencies 2021-12-02 19:51:53 +02:00
Ari Archer 3f768ff00f
TODOs, improved README and in general code improvements.
- Added upgrading instructions in README
- Improved installation instructions
- Better keymapping support (more customisable)
- More low-level customisation
- Proper daemon initialisation
- Completed some TODOs in code and in README
- Made input design more consistant
- Custom extensions
- Removed/renabled useless variables
- Fixed bugs with update handlers
- Fixed requirement formatting and versioning
2021-12-02 19:40:19 +02:00
Ari Archer 71426da2c5
fixed README.md typos 2021-11-29 21:40:38 +02:00
Ari Archer 958c3e9a70
fixed CI 2021-11-29 16:51:04 +02:00
Ari Archer 5ed3e9b1bf
fixed CI 2021-11-29 16:47:25 +02:00
Ari Archer 031d9c6399
fixed CI.. again, also type hinting callables is a pain 2021-11-29 16:40:19 +02:00
Ari Archer 39f53ce99e
fixed CI 2021-11-29 16:37:15 +02:00
Ari Archer 410621da7d
fixes 2021-11-29 16:33:18 +02:00
Ari Archer df85f57ba7
fixed CI 2021-11-28 20:23:27 +02:00
Ari Archer d237f21a83
improved config 2021-11-28 20:20:01 +02:00
TruncatedDinosour 5a7f8469b0
Update README.md 2021-11-28 22:05:26 +08:00
TruncatedDinosour 8595ae2cf0
Merge pull request #1 from TruncatedDinosour/imgbot
[ImgBot] Optimize images
2021-11-28 22:04:16 +08:00
Ari Archer cf0eadc2b6
fixed CI 2021-11-28 16:02:37 +02:00
TruncatedDinosour f0124c7834
Update README.md 2021-11-28 21:58:39 +08:00
ImgBotApp c86850931c
[ImgBot] Optimize images
/arigram/resources/arigram.png -- 145.51kb -> 68.84kb (52.69%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2021-11-28 13:56:56 +00:00
Ari Archer 55eebc496e
first commit 2021-11-28 15:56:03 +02:00