log post id before trying to send

This commit is contained in:
bakatrouble 2023-11-03 15:34:00 +03:00
parent e2d194f144
commit bbb50fec8b

View File

@ -44,6 +44,7 @@ def format_tags(tags: Iterable[str]):
async def send_post(post: E621Post, tag_list: List[str]): async def send_post(post: E621Post, tag_list: List[str]):
logging.warning(f'Sending post #{post.id}')
await bot.send_chat_action(int(os.environ['SEND_CHAT']), action=ChatAction.TYPING) await bot.send_chat_action(int(os.environ['SEND_CHAT']), action=ChatAction.TYPING)
monitored_tags = set(post.tags.flatten()) & set(tag_list) monitored_tags = set(post.tags.flatten()) & set(tag_list)
artist_tags = post.tags.artist artist_tags = post.tags.artist