mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 08:37:07 +01:00
the transaction function should not be running async i guess.
parent
b7af11847b
commit
7641bdbd58
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ def transaction(update, context):
|
||||||
update=update
|
update=update
|
||||||
)
|
)
|
||||||
|
|
||||||
dispatcher.add_handler(CommandHandler('transaction', transaction, run_async=True))
|
dispatcher.add_handler(CommandHandler('transaction', transaction, run_async=False))
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:** You might have noticed that I moved `bank.log` before `bot.send_message`, so the log entries will be in order *most of the time*, assuming the database operations take long enough for the log to complete.
|
**Note:** You might have noticed that I moved `bank.log` before `bot.send_message`, so the log entries will be in order *most of the time*, assuming the database operations take long enough for the log to complete.
|
||||||
|
|
Loading…
Reference in a new issue