remove
The remove
function from the History
class is used to delete message blocks from the history based on their index. By default, the index is set to -1, which results in deleting the last message in the list.
Properties:
index — the index of the element to be deleted.
Example usage:
Thus, the remove
function allows for efficient management of history by deleting messages at the specified index.
Last updated