Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
azhuchkov committed Jan 10, 2024
1 parent 1fac493 commit 026f157
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ by looking at the [Telegram documentation](https://core.telegram.org/tdlib/docs/

### Available actions
Specify your reactions to messages with the following actions, which can be used in any combination:
- **reply(text, receiver=None)**: Sends a reply, optionally to a different receiver.
- **reply(text, receiver: int = None)**: Sends a reply, optionally to a different receiver.
- **click(label)**: Clicks a button identified by its label.
- **mark_as_read()**: Marks a message as read.
- **exec(cmd)**: Executes a shell command, passing the message to the process' STDIN in JSON format.
- **exec(cmd)**: Executes a shell command, passing the message to the process' STDIN in JSON format.
- **delete(revoke: bool = False)**: Deletes message.

## Examples

Expand Down Expand Up @@ -79,6 +80,20 @@ Here is the **bounce** that sends every text message to the [macOS Notification
}
```

### Message deletion
Delete forwarded messages from a particular user (for both participants):
```json
{
"on": {
"sender_id.user_id": 192830138,
"is_forwarded": { "value": "forward_info != None", "matcher": "expr" }
},
"do": {
"delete": {"revoke": true}
}
}
```

## Installation
Follow these steps to install tgbounce:

Expand Down

0 comments on commit 026f157

Please sign in to comment.