File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ def noitip(update, context):
2727 with get_session () as session :
2828 random_noitip = session .query (models .Noitip ).order_by (func .random ()).first ().text
2929 msg = update .message .reply_text (random_noitip )
30- context .sent_messages .append (msg )
30+ context .chat_data . setdefault ( ' sent_messages' , []) .append (msg )
3131
3232
3333def asm (update , context ):
3434 if not context .args :
3535 msg = update .message .reply_text (
3636 "No me pasaste ninguna instrucción." )
37- context .sent_messages .append (msg )
37+ context .chat_data . setdefault ( ' sent_messages' , []) .append (msg )
3838 return
3939
4040 mnemonic = " " .join (context .args ).upper ()
@@ -54,7 +54,7 @@ def asm(update, context):
5454 "Quizás quisiste decir:\n " )
5555 response_text += "\n " .join (getasminfo (i ) for i in possibles )
5656 msg = update .message .reply_text (response_text )
57- context .sent_messages .append (msg )
57+ context .chat_data . setdefault ( ' sent_messages' , []) .append (msg )
5858
5959
6060def levenshtein (string1 , string2 ):
You can’t perform that action at this time.
0 commit comments