MM
Size: a a a
MM
В
КК
КК
КК
Could not find the input entity for PeerUser(user_id=1749049011) (PeerUser). Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.
КК
MM
MM
MM
КК
КК
MM
MM
КК
MM
MM
КК
@client.on(events.NewMessage())
async def handler(event):
try:
await asyncio.sleep(7)
now = datetime.datetime.now()
time_now = str(now.hour) + ':' + str(now.minute) + ''
if event.is_private:
chId = event.chat_id
count = replys.get(chId, 0)
if count == 0:
replys[chId] = count + 1
async with event.client.action(event.message.from_id.user_id, 'record-audio'):
await event.client.send_read_acknowledge(event.message.from_id.user_id)
await asyncio.sleep(5)
path = config.voice_files
voice = sorted(os.listdir(path))
voice_sound = random.choice(voice)
await event.client.send_file(event.message.from_id.user_id, 'files/voice/' + voice_sound,
voice_note=True)
print(color.White, "[", time_now, "]", 'Отправляю войс', ' | ', event.message.from_id.user_id,
' | ', voice_sound, color.END)
MM
await event.client.send_file(event.message.sender, ...
MM
MM
event.message.from_id.user_id
ток id