Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning when calling get_chat #2412

Open
coder2020official opened this issue Nov 1, 2024 · 1 comment
Open

Deprecation warning when calling get_chat #2412

coder2020official opened this issue Nov 1, 2024 · 1 comment
Labels

Comments

@coder2020official
Copy link
Collaborator

calling bot.get_chat throws this warning:

The parameter "can_send_media_messages" is deprecated. Use individual parameters like "can_send_audios", "can_send_documents" etc.

@Badiboy can you please investigate it? I looked at the origin and for some reason we are checking for presence of de_json in kwargs and for can_send_media_messages, which I don't remember. Since you have implemented it and probably remember how it works, please take a look...

@Badiboy
Copy link
Collaborator

Badiboy commented Nov 3, 2024

Works fine for me.

Looks like it may be raised by old library version. Deprecation warning from get_chat was suppressed by de_json=True parameter of ChatPermissions constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants