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
😕 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.
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
user ! and yes i get event with another user and send messages with another user 😁
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
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
Обсуждают сегодня