dividing it into each object? The "Newmessage" method automatically sends each album unit.
I saw the "Album" method, but as I understood, both it and the "Newmessage" method will work, and I need only "Album" to work
Are they purely images? what does the other NewMessage do
I want to make a single news channel. To do this, I get "NewMessage" from certain chats and pass it all to my own. Everything works fine, but the albums are sent separately...
merge two handlers and ignore the duplicate single ones @client.on(events.NewMessage()) @client.on(events.Album()) async def _(event): if not hasattr(event, "messages") and event.grouped_id: return await event.forward_to(chat) if you don't want forward but to resend them, then make simple check to differentiate album event from normal one in where the return is
Thanks, it works! But tell me more, how to respond only to certain channels? @client.on(events.Album(chats="Qtozdec")) does not work
It should still work ok, try with a test chat of yours in chats=
I tried with the Qtozdec chat (this is the name of my channel, I am subscribed to it, the account has admin rights)
Ah, everything works! Thank you very much!
Just though of that minutes ago ( LORD LONAMI REACTION @TELETHONCHAT WHEN)
don't think i'll be enabling them here. seems unnecessary
But our competitors @pyromaniac have reactions 😭 i want one too nvm, let's keep like that, no-one would like reactions notification spam, you can enable it at each Christmas for 1/2 minute
Обсуждают сегодня