mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-28 19:22:54 +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
|
bank.write_account(target) # 1
|
||||||
|
|
||||||
|
|
||||||
context.dispatcher.run_async(
|
context.application.create_task(
|
||||||
log_and_notify,
|
log_and_notify(
|
||||||
FINISHED_TRANSACTION,
|
FINISHED_TRANSACTION,
|
||||||
amount,
|
amount,
|
||||||
source_id,
|
source_id,
|
||||||
target_id,
|
target_id,
|
||||||
chat_id,
|
chat_id,
|
||||||
'Done!',
|
'Done!',
|
||||||
|
),
|
||||||
update=update
|
update=update
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue