File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,13 @@ async def imposter_cmd(client: Client, message: Message):
139
139
140
140
@Client .on_message (filters .command (["imp" , "impn" ], prefix ) & filters .me )
141
141
async def imp_animation (client : Client , message : Message ):
142
- name = " " .join (message .command [1 :]) if len (message .command ) > 1 else "Unknown"
142
+ name = " " .join (message .command [1 :]) if len (message .command ) > 1 else ""
143
+ if not name :
144
+ reply = message .reply_to_message
145
+ if reply :
146
+ name = reply .from_user .first_name
147
+ else :
148
+ name = message .from_user .first_name
143
149
cmd = message .command [0 ].lower ()
144
150
145
151
text1 = await edit_or_reply (message , "Uhmm... Something is wrong here!!" )
@@ -168,7 +174,7 @@ async def imp_animation(client: Client, message: Message):
168
174
await text4 .edit ("<b>Others:</b> Who??" )
169
175
await asyncio .sleep (2 )
170
176
await text4 .edit (
171
- f"<b>{ message .from_user .first_name } :</b> Its { name } , I saw { name } using vent, "
177
+ f"<b>{ message .from_user .first_name } :</b> Its { name } , I saw { name } using vent"
172
178
)
173
179
await asyncio .sleep (3 )
174
180
await text4 .edit (f"<b>Others:</b> Okay.. Vote { name } " )
You can’t perform that action at this time.
0 commit comments