Похожие чаты

Hi guys. So a very strange problem. I added bot

to more groups and it sees commands but when i add to one group that is public and over 100k people it doesn't answer to messages. Why?

15 ответов

12 просмотров

if bot isn't admin there, and you have no faults in your code, make sure you have disabled group privacy

⎞ .·. ⎝ ⎝
if bot isn't admin there, and you have no faults i...

what is group privacy ? it happend in private chat not a group

‌ ‌ M
what is group privacy ? it happend in private chat...

that's not a reply to you, and show the events.NewMessage part of the code

⎞ .·. ⎝ ⎝
that's not a reply to you, and show the events.New...

@client.on(events.NewMessage(pattern=r'/?tts (.*)', outgoing=True)) async def tts(event): if event.fwd_from: return text = event.pattern_match.group(1) print(text) tts = gTTS(text=text, lang='en') tts.save('tts.mp3') await client.send_file(event.chat_id, 'tts.mp3', voice_note=True) await event.delete() os.remove('tts.mp3')

‌ ‌ M
@client.on(events.NewMessage(pattern=r'/?tts (.*)'...

it can't happen. you've mostly mixed clients, try as await event.client.send_file instead

‌ ‌ M
@client.on(events.NewMessage(pattern=r'/?tts (.*)'...

i also used event.chat instead of chat_id but event.chat is NoneType

‌ ‌ M
i also used event.chat instead of chat_id but even...

and as for that try to: print(event.input_chat, event.sender) later

⎞ .·. ⎝ ⎝
and as for that try to: print(event.input_chat, ev...

event.input_chat is None and it returns same error with event.sender_id

‌ ‌ M
sender is me !! i want send the file to chat

I know. try using the print(await event.get_input_chat()) afaik UpdateShortMessage (the one that has chat as None) can't include min entities, so it shouldn't be raising a ValueError, if it does, you have no way of using id, passing event.peer_id usage may help

Duong TOP
Already did that...

Server is cockblocking your bot for some reason, but it should be expected if it's not admin, there are many hidden limitations

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
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...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
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...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта