Похожие чаты

What is the problem ? my code : await client.send_message(types.PeerUser(user_id = event.user_id),text)

10 ответов

13 просмотров

your session file is weirdly bitchless, the event should deliver the needed user. So you're passing a channel wrongly in there, or something like that. try to get that person manually with client.get_entity(id), without the peerUser thing

♡ MR None ♡-( OFFLINE ) Автор вопроса
!Pine Apple ❂ Pizza
your session file is weirdly bitchless, the event ...

😕 ok ... await client.send_message(await client.get_entity(event.user_id),text) like this ?

Should be runtime issue, pass it a ready peer, event.get_input_user(). send message does get_input_entity internally, this should guarantee it to some extent, idk you confirmed it's not cached, it can be an issue for your setup, passing the peer object from event would avoid it.

♡ MR None ♡-( OFFLINE ) Автор вопроса
!Pine Apple ❂ Pizza
Should be runtime issue, pass it a ready peer, eve...

await client.send_message(await client.get_input_entity(event.user_id),text) await client.send_message(event.get_input_user(),text) Wait a few moments while I try these

♡ MR None ♡-( OFFLINE ) Автор вопроса

user ! and yes i get event with another user and send messages with another user 😁

♡ MR None ♡-( OFFLINE ) Автор вопроса
♡ MR None ♡-( OFFLINE ) Автор вопроса
!Pine Apple ❂ Pizza
en titties are account unique

🤦‍♂ What should I do so that my account is not limited? ( flood ) I would like to send a welcome message to all new members of the group

♡ MR None ♡ ( OFFLINE )
🤦‍♂ What should I do so that my account is not lim...

You're not welcoming then, you're breaking in their pm, the second client that sends the message doesn't have any clue of those events, so it's not able to fetch that person from its cache. you have to pass username to second client. id won't work. you could mention that earlier y'know

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
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
Карта сайта