Skip to content

Commit 53edf97

Browse files
committed
Fix linter
1 parent 0c63106 commit 53edf97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/outgoing_message.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Handle message, which sent from this instance without API
88
@bot.router.outgoing_message()
9-
def message_handler(notification: Notification) -> None:
9+
def message_handler_outgoing(notification: Notification) -> None:
1010
print("Outgoing Message: ", notification.get_id_message())
1111
print("Sender:", notification.get_sender())
1212
print("Chat:", notification.get_chat())
@@ -15,7 +15,7 @@ def message_handler(notification: Notification) -> None:
1515

1616
# Handle message, which sent from this instance with API
1717
@bot.router.outgoing_api_message()
18-
def message_handler(notification: Notification) -> None:
18+
def message_handler_outgoing_api(notification: Notification) -> None:
1919
print("Outgoing Message from API: ", notification.get_id_message())
2020
print("Sender:", notification.get_sender())
2121
print("Chat:", notification.get_chat())
@@ -24,7 +24,7 @@ def message_handler(notification: Notification) -> None:
2424

2525
# Handle status of any sent message from this instance (sent, delivired, read)
2626
@bot.router.outgoing_message_status()
27-
def message_handler(notification: Notification) -> None:
27+
def message_handler_outgoing_status(notification: Notification) -> None:
2828
print("Status of message:", notification.get_id_message(), "is", notification.get_status_message())
2929

3030
bot.run_forever()

0 commit comments

Comments
 (0)