Skip to content

Conversation

@ElmurodovJavohir
Copy link
Contributor

@ElmurodovJavohir ElmurodovJavohir commented Aug 24, 2023

closes #3799

@ElmurodovJavohir
Copy link
Contributor Author

Some test failed is it okay, or should I fix tests

@ElmurodovJavohir
Copy link
Contributor Author

@Bibo-Joshi I have added unit test, and fixed docs build. But others test failing, that I not changed or effect, is it okay, or am I wrong any thing.

Copy link
Member

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the pr.

test_official failing isn't your fault. However there is one line which isn't tested and that's why codecov is failing.

I'll review more later.

Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I left a number of comments

@harshil21 harshil21 added the 📋 pending-reply work status: pending-reply label Aug 28, 2023
@harshil21 harshil21 added 📋 pending-review work status: pending-review and removed 📋 pending-reply work status: pending-reply labels Aug 30, 2023
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates! I left another batch of comments. I didn't have a look at the tests yet …

@harshil21 harshil21 added 📋 pending-reply work status: pending-reply and removed 📋 pending-review work status: pending-review labels Sep 4, 2023
@ElmurodovJavohir
Copy link
Contributor Author

@Bibo-Joshi Thanks your feedbacks, I will fix it

Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates. I left another batch of comments. Didn't look at the tests yet …

Comment on lines +2601 to +2602
if isinstance(mention, TGUser):
return bool(any(mention.id == e.user.id for e in message.entities if e.user))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one should also check if mention.username is in one of the MessageEntities of type MessageEntity.MENTION

if isinstance(mention, int):
return bool(any(mention == e.user.id for e in message.entities if e.user))
return bool(
isinstance(mention, str)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specifi reason for this type check? Seems superfluous to me …

Bibo-Joshi added a commit that referenced this pull request Oct 22, 2023
@Bibo-Joshi Bibo-Joshi mentioned this pull request Oct 22, 2023
5 tasks
@Bibo-Joshi
Copy link
Member

Due to inactivity, closing in favor of #3941

@Bibo-Joshi Bibo-Joshi closed this Oct 22, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2023
@Bibo-Joshi Bibo-Joshi added 🔌 enhancement pr description: enhancement and removed enhancement labels Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🔌 enhancement pr description: enhancement 📋 pending-reply work status: pending-reply

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add bot mentioned filter

3 participants