fix-left-join
This commit is contained in:
@@ -6,7 +6,7 @@ logger = logging.getLogger(__name__)
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
|
||||
async def show_request_msg(msg):
|
||||
async def show_request_msg(msg, auto = False):
|
||||
logger.info("showing request with button")
|
||||
chat_id = str(msg["chat"]["id"])
|
||||
from_id = str(msg["from"]["id"])
|
||||
@@ -22,7 +22,7 @@ async def show_request_msg(msg):
|
||||
r = await get_userphotos(user_id=from_id)
|
||||
logger.debug(r)
|
||||
if r["ok"] and r["result"]["total_count"] > 0:
|
||||
print("show button with photo")
|
||||
logger.info("showing button with photo")
|
||||
file_id = r["result"]["photos"][0][0]["file_id"]
|
||||
_uid, identity, username = userdata_extract(msg["from"])
|
||||
r = await send_photo(
|
||||
@@ -33,7 +33,7 @@ async def show_request_msg(msg):
|
||||
reply_markup=reply_markup,
|
||||
)
|
||||
else:
|
||||
logger.info("show button without photo")
|
||||
logger.info("showing button without photo")
|
||||
r = await send_message(
|
||||
chat_id,
|
||||
newcomer_message + mention(msg["from"]),
|
||||
|
Reference in New Issue
Block a user