Skip to content

Commit c361bf8

Browse files
Merge pull request #107 from supreme-gg-gg/instagrapi-version
[chore] upgrade instagrapi and config for read receipt
2 parents 4a829b9 + 828dd65 commit c361bf8

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ The world's first open-source CLI (command line interface) + Terminal UI client
2929
> [!TIP]
3030
> Use Instagram with 100% keyboard control - no mouse clicks or touchscreen taps needed! Perfect for developers and Linux users who love staying on the keyboard 🤣
3131
32+
### Need a break and have some brainrot?
33+
34+
Want to watch Instagram Reels right from your terminal? Check out [reels-cli](https://github.com/notMarkMP1/reels-cli). It’s a great way to enjoy some light entertainment without leaving your keyboard. (Not affiliated and not maintained by us, but highly recommended for terminal fans.)
35+
3236
## Installation
3337

3438
The simplest way to get started is to install the package from PyPI if you have Python installed:

instagram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
__all__ = ["login", "logout", "start_chat", "Config", "cleanup"]
77

8-
__version__ = "1.3.7"
8+
__version__ = "1.3.8"

instagram/chat_ui/interface/chat_interface.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ def _refresh_chat(self):
8282
# self.messages.extend(new_messages)
8383
self.chat_window.set_messages(new_messages)
8484
self.chat_window.update()
85-
self.direct_chat.mark_as_seen()
85+
86+
if Config().get("chat.send_read_receipts", True):
87+
self.direct_chat.mark_as_seen()
88+
else:
89+
# we mark the thread as seen internally but do not send to Instagram
90+
self.direct_chat.seen = 1
8691
except Exception as e:
8792
self.status_bar.update(
8893
f"Refresh error: {str(e)}", override_default=True

instagram/configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
DEFAULT_CONFIG = {
88
"language": "en",
99
"login": {"default_username": None, "current_username": None},
10-
"chat": {"layout": "compact", "colors": True},
10+
"chat": {"layout": "compact", "colors": True, "send_read_receipts": True},
1111
"scheduling": {
1212
"default_schedule_duration": "01:00" # 1 hour
1313
},

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "instagram-cli"
7-
version = "1.3.7"
7+
version = "1.3.8"
88
description = "Use Instagram in the terminal, the end of brainrot is here"
99
authors = [
1010
{ name = "Jet Chiang", email = "jetjiang.ez@gmail.com" },
@@ -23,13 +23,13 @@ keywords = [
2323
requires-python = ">=3.10"
2424
dependencies = [
2525
"typer==0.12.5",
26-
"art==6.5",
27-
"pydantic==2.10.1",
28-
"instagrapi==2.1.3",
29-
"pyyaml==6.0.2",
30-
"pillow==11.2.1",
31-
"emoji==2.14.1",
32-
"requests==2.32.3",
26+
"art>=6.5",
27+
"pydantic>=2.10.1",
28+
"instagrapi==2.1.5",
29+
"pyyaml>=6.0.2",
30+
"pillow>=11.2.1",
31+
"emoji>=2.14.1",
32+
"requests>=2.32.3",
3333
"click<8.2.0",
3434
"windows-curses; platform_system=='Windows'",
3535
]

0 commit comments

Comments
 (0)