mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-24 16:17:37 +01:00
updated signatur callback
parent
1789a67307
commit
c5405812b6
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ An example that is often used to illustrate this is that of a bank. Let's say yo
|
|||
|
||||
```python
|
||||
@run_async
|
||||
def transaction(bot, update):
|
||||
def transaction(update, context):
|
||||
bot = context.bot
|
||||
chat_id = update.message.chat_id
|
||||
source_id, target_id, amount = parse_update(update)
|
||||
|
||||
|
|
Loading…
Reference in a new issue