Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 25, 2024
1 parent 6f42146 commit eace973
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ wa = WhatsApp(...)
@wa.on_message
async def on_message(_: WhatsApp, msg: types.Message):
msg.reply("Hello, World!")


# New code
from pywa_async import WhatsApp, types

Expand Down Expand Up @@ -137,7 +137,7 @@ from pywa import WhatsApp, types

def on_start(_: WhatsApp, m: types.Message):
m.reply("How old are you?")

def on_age(_: WhatsApp, m: types.Message):
m.reply(f"You are {m.text} years old")
m.reply("What is your name?")
Expand Down Expand Up @@ -213,4 +213,3 @@ def some_web_framework_handler(req):
)
return res, status
```

0 comments on commit eace973

Please sign in to comment.