Skip to content

Commit e239542

Browse files
doc: Improve documentation on events (#1208)
1 parent 6efec42 commit e239542

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

doc/usage.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,28 @@
1717
that emits the following events:
1818

1919
1. `message`: Received a new incoming [Message][message] of any kind
20-
1. Depending on the properties of the [Message][message], one of these
20+
1. Depending on the properties of the [Message][message], one of these
2121
events may **ALSO** be emitted: `text`, `audio`, `document`, `photo`,
2222
`sticker`, `video`, `voice`, `contact`, `location`,
2323
`new_chat_members`, `left_chat_member`, `new_chat_title`,
2424
`new_chat_photo`, `delete_chat_photo`, `group_chat_created`,
2525
`game`, `pinned_message`, `poll`, `dice`, `migrate_from_chat_id`, `migrate_to_chat_id`,
2626
`channel_chat_created`, `supergroup_chat_created`,
2727
`successful_payment`, `invoice`, `video_note`
28-
1. **Arguments**: `message` ([Message][message]), `metadata` (`{ type?:string }`)
29-
1. `new_chat_participant`, `left_chat_participant` are **deprecated**
28+
1. **Arguments**: `message` ([Message][message]), `metadata` (`{ type?:string }`)
29+
1. `new_chat_participant`, `left_chat_participant` are **deprecated**
3030
1. `callback_query`: Received a new incoming [Callback Query][callback-query]
3131
1. `inline_query`: Received a new incoming [Inline Query][inline-query]
3232
1. `chosen_inline_result`: Received result of an inline query i.e. [ChosenInlineResult][chosen-inline-result]
3333
1. `channel_post`: Received a new incoming channel post of any kind
34-
1. `edited_message`: Received a new version of a message that is known to the bot and was edited
35-
1. `edited_message_text`
36-
1. `edited_message_caption`
37-
1. `edited_channel_post`: Received a new version of a channel post that is known to the bot and was edited
38-
1. `edited_channel_post_text`
39-
1. `edited_channel_post_caption`
34+
1. `edited_message`: Received a new version of a message that is known to the bot and was edited \
35+
Depending on the properties of the [Message][message], one of these events may **ALSO** be emitted:
36+
1. `edited_message_text`
37+
1. `edited_message_caption`
38+
1. `edited_channel_post`: Received a new version of a channel post that is known to the bot and was edited \
39+
Depending on the properties of the [Message][message], one of these events may **ALSO** be emitted:
40+
1. `edited_channel_post_text`
41+
1. `edited_channel_post_caption`
4042
1. `shipping_query`: Received a new incoming shipping query
4143
1. `pre_checkout_query`: Received a new incoming pre-checkout query
4244
1. `poll`: Received a new incoming poll

0 commit comments

Comments
 (0)