Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def construct_user_info(update):
- user_id = update.effective_user.id
- username = update.effective_user.username
- first_name = update.effective_user.first_name
- last_name = update.effective_user.last_name
- info = (
- (
- f"`{user_id}` \n"
- f"@{username}\n" if username else ""
- ) +
- (f"{first_name} " if first_name else "") +
- f"{last_name} " if last_name else ""
- )
- return info
- await context.bot.copy_message(
- REPORTING_CHAT_ID,
- update.effective_chat.id,
- sent_photo.message_id,
- parse_mode=constants.ParseMode.MARKDOWN,
- caption=USER_RESPONSE_INFO_MESSAGE.format(
- user_info=construct_user_info(update),
- image_info=construct_image_response_info(update, seed)
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement