mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
Updated Concurrency (markdown)
parent
856833fdb3
commit
95f89beae9
1 changed files with 9 additions and 8 deletions
|
@ -307,14 +307,15 @@ async def transaction(update, context):
|
|||
bank.write_account(target) # 1
|
||||
|
||||
|
||||
context.dispatcher.run_async(
|
||||
log_and_notify,
|
||||
FINISHED_TRANSACTION,
|
||||
amount,
|
||||
source_id,
|
||||
target_id,
|
||||
chat_id,
|
||||
'Done!',
|
||||
context.application.create_task(
|
||||
log_and_notify(
|
||||
FINISHED_TRANSACTION,
|
||||
amount,
|
||||
source_id,
|
||||
target_id,
|
||||
chat_id,
|
||||
'Done!',
|
||||
),
|
||||
update=update
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue