Похожие чаты

Tell me please, how can I send an album without

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

11 ответов

41 просмотр

Are they purely images? what does the other NewMessage do

Озёрный-Будильник Автор вопроса
Лагунный Колокольчик
Are they purely images? what does the other NewMes...

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...

Озёрный Будильник
I want to make a single news channel. To do this, ...

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

Озёрный-Будильник Автор вопроса
Лагунный Колокольчик
merge two handlers and ignore the duplicate singl...

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 y...

I tried with the Qtozdec chat (this is the name of my channel, I am subscribed to it, the account has admin rights)

Just though of that minutes ago ( LORD LONAMI REACTION @TELETHONCHAT WHEN)

Путешествующий Блин
don't think i'll be enabling them here. seems unne...

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

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Мелодичный Сырник
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Фетровый Лингвист
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Настойчивый Кварк
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
Льдистая Лужица
2
30500 за редактор? )
Замшевый Алхимик
47
а через ESC-код ?
Виноградная Притча
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Звенящий Циферблат
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Туманный Ларец
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Длинный Минерал
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Тягучая Ракушка
11
Карта сайта