mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
minor fixes
This commit is contained in:
@@ -28,8 +28,10 @@ def send_action(action):
|
|||||||
def decorator(func):
|
def decorator(func):
|
||||||
@wraps(func)
|
@wraps(func)
|
||||||
async def command_func(update: Update, context: CustomContext, *args, **kwargs):
|
async def command_func(update: Update, context: CustomContext, *args, **kwargs):
|
||||||
await update.effective_chat.send_action(action)
|
try:
|
||||||
return await func(update, context, *args, **kwargs)
|
await update.effective_chat.send_action(action)
|
||||||
|
finally:
|
||||||
|
return await func(update, context, *args, **kwargs)
|
||||||
|
|
||||||
return command_func
|
return command_func
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user