Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
prostraction committed Dec 15, 2024
1 parent 0c63106 commit 53edf97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/outgoing_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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

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

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

bot.run_forever()

0 comments on commit 53edf97

Please sign in to comment.