mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-22 11:42:49 +00:00
🐛 PMCaptcha - Fix user_id bug
This commit is contained in:
parent
ae27cbceba
commit
00c1ebe7b7
@ -72,7 +72,7 @@
|
||||
},
|
||||
{
|
||||
"name": "pmcaptcha",
|
||||
"version": "2.1",
|
||||
"version": "2.101",
|
||||
"section": "chat",
|
||||
"maintainer": "cloudreflection,01101sam",
|
||||
"size": "54.6 kb",
|
||||
|
@ -813,6 +813,11 @@ class Command:
|
||||
if not user_id and not self.msg.reply_to_message_id and self.msg.chat.type != ChatType.PRIVATE:
|
||||
await self.msg.edit(lang('tip_run_in_pm'), parse_mode=ParseMode.HTML)
|
||||
return
|
||||
try:
|
||||
if int(user_id) < 0:
|
||||
return
|
||||
except ValueError:
|
||||
pass
|
||||
user = None
|
||||
user_id = user_id or self.msg.reply_to_message_id or (
|
||||
self.msg.chat.type == ChatType.PRIVATE and self.msg.chat.id or 0)
|
||||
|
Loading…
Reference in New Issue
Block a user