Похожие чаты

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

10 ответов

12 просмотров

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

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

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

Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
Ну вот просто даже давайте вот как. Какой нибудь конкретный кейс, можете в пример привести, где бч работает и приносит прикладную пользу, а не просто что бы было? Не крипту.
Alexander Andreev
22
объясните пожалуйста, почему функция не работает должным образом? вроде должно брать активное окно сравнивать его размер с размером экрана, и если есть совпадение = true прове...
JF
12
For all those that keep asking why no pump? why this ? and why that...? Please close ur ewt chart and open 2 others - TOTAL (total mc) and BTC.D (btc dominance). Maybe BTC a...
Inn3r_G
19
"Since pnut can flip FTM easily, I'm swapping my FTM to pnut and hoping for a easy x5-x10" Perfect recipe for disaster. NFA but chances are, you'll end up as exit liquidity ...
C. A.
7
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
AMD status update? No longer in the plan but something might be around the corner later on Chinese partner? No longer in the plan. This market does not seem to be the top ...
Ben
6
207$ but only received 170$. what the hell?
htt
10
да кстати заметил всюда почему то всех сюда прёт, ни в одном чате столько ботов не прёт как сюда.. Может чота надо доработать?
REDis
15
Мне вот любопытно. Уже сколько времени имею соблазн купить макбук, ибо подозреваю что очень уж удобен будет в связке с другой техникой от эпл которая у меня есть, да и сам по ...
Not Yeromin
14
Карта сайта