@@ -23,16 +23,16 @@ def get_session():
2323 session .close ()
2424
2525
26- def noitip (update , context ):
26+ async def noitip (update , context ):
2727 with get_session () as session :
2828 random_noitip = session .query (models .Noitip ).order_by (func .random ()).first ().text
29- msg = update .message .reply_text (random_noitip )
29+ msg = await update .message .reply_text (random_noitip )
3030 context .chat_data .setdefault ('sent_messages' , []).append (msg )
3131
3232
33- def asm (update , context ):
33+ async def asm (update , context ):
3434 if not context .args :
35- msg = update .message .reply_text (
35+ msg = await update .message .reply_text (
3636 "No me pasaste ninguna instrucción." )
3737 context .chat_data .setdefault ('sent_messages' , []).append (msg )
3838 return
@@ -53,7 +53,7 @@ def asm(update, context):
5353 response_text = ("No pude encontrar esa instrucción.\n "
5454 "Quizás quisiste decir:\n " )
5555 response_text += "\n " .join (getasminfo (i ) for i in possibles )
56- msg = update .message .reply_text (response_text )
56+ msg = await update .message .reply_text (response_text )
5757 context .chat_data .setdefault ('sent_messages' , []).append (msg )
5858
5959
0 commit comments