fix-owner-my
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
from storage import Profile, scan
|
from storage import Profile, scan
|
||||||
from api import get_member, send_message, get_chat_administrators
|
from api import get_member, send_message, get_chat_administrators
|
||||||
from utils.mention import userdata_extract
|
from utils.mention import userdata_extract
|
||||||
|
import json
|
||||||
|
|
||||||
|
|
||||||
async def construct_unlink_buttons(actor):
|
async def construct_unlink_buttons(actor):
|
||||||
@@ -53,6 +54,7 @@ async def handle_command_my(msg, state):
|
|||||||
|
|
||||||
async def handle_command_owner_my(msg):
|
async def handle_command_owner_my(msg):
|
||||||
chat_id = msg["chat"]["id"]
|
chat_id = msg["chat"]["id"]
|
||||||
|
if chat_id < 0: # is not private
|
||||||
r = await get_chat_administrators(chat_id)
|
r = await get_chat_administrators(chat_id)
|
||||||
print(r)
|
print(r)
|
||||||
owner_id = ""
|
owner_id = ""
|
||||||
|
Reference in New Issue
Block a user