illixion / blog.illixion.com

0 stars 0 forks source link

2020/07/telegram-enable-autoarchive-through-api/ #5

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

How to enable Telegram's "Filter New Chats from Non-Contacts" - Manual

Telegram seems to limit who can see the new “Filter New Chats from Non-Contacts” setting to people who have already received a lot of spam. Thankfully, it’s still possible to enable it before that happens.

https://catto.io/2020/07/telegram-enable-autoarchive-through-api/

joesixpack commented 2 years ago

Appears to have stopped working:

AttributeError: module 'telethon.tl.functions.account' has no attribute 'SetGlobalPrivacySettingsRequest'

joesixpack commented 2 years ago

Upgraded to Telethon 1.24 now get this:

telethon.errors.rpcerrorlist.AutoarchiveNotAvailableError: You cannot use this feature yet (caused by SetGlobalPrivacySettingsRequest)

illixion commented 2 years ago

@joesixpack that sucks, thanks for letting me know. Looks like they’ve implemented a server-side check for eligibility, and this error is described in the Telethon API reference. I’ll update the article accordingly.

illixion commented 2 years ago

Appears to have stopped working:

AttributeError: module 'telethon.tl.functions.account' has no attribute 'SetGlobalPrivacySettingsRequest'

I've created a Telegram feature suggestion regarding this, feel free to upvote it and add your comments: https://bugs.telegram.org/c/13017