History Command
Simplified history command implementation.
-
_all_history(render, dbus, user_id, plain)[source]
Get all conversation history.
- Return type:
int
- Parameters:
render (RenderUtils) – The render utils.
dbus (DbusUtils) – The dbus utils.
user_id (str) – The user id.
plain (bool) – Whether to render in plain text.
- Returns:
The exit code.
- Return type:
int
-
_clear_all_history(render, dbus, user_id)[source]
Clear all history.
- Return type:
int
- Parameters:
render (RenderUtils) – The render utils.
dbus (DbusUtils) – The dbus utils.
user_id (str) – The user id.
- Returns:
The exit code.
- Return type:
int
-
_clear_history(render, dbus, user_id, from_chat)[source]
Clear history for a specific chat.
- Return type:
int
- Parameters:
render (RenderUtils) – The render utils.
dbus (DbusUtils) – The dbus utils.
user_id (str) – The user id.
from_chat (str) – The chat id.
- Returns:
The exit code.
- Return type:
int
-
_filter_history(render, dbus, user_id, filter_text, from_chat, plain)[source]
Filter conversation history.
- Return type:
int
- Parameters:
render (RenderUtils) – The render utils.
dbus (DbusUtils) – The dbus utils.
user_id (str) – The user id.
filter_text (str) – The filter text.
from_chat (str) – The chat id.
plain (bool) – Whether to render in plain text.
- Returns:
The exit code.
- Return type:
int
-
_first_history(render, dbus, user_id, from_chat, plain)[source]
Get first conversation from history.
- Return type:
int
- Parameters:
render (RenderUtils) – The render utils.
dbus (DbusUtils) – The dbus utils.
user_id (str) – The user id.
from_chat (str) – The chat id.
plain (bool) – Whether to render in plain text.
- Returns:
The exit code.
- Return type:
int
-
_last_history(render, dbus, user_id, from_chat, plain)[source]
Get last conversation from history.
- Return type:
int
- Parameters:
render (RenderUtils) – The render utils.
dbus (DbusUtils) – The dbus utils.
user_id (str) – The user id.
from_chat (str) – The chat id.
plain (bool) – Whether to render in plain text.
- Returns:
The exit code.
- Return type:
int
-
_show_history(renderer, entries)[source]
Display history entries in a standardized way.
- Return type:
None
- Parameters:
-