mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 08:37:07 +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,
|
||||
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