a channel
But I just want the message that are only text , not sticker/doc/photo/ect
And also I want the text to be saved in my jason file not the whole message with id,ect..
Does anyone know how to do that?
don't use getHistoryRequest use iter_messages: async for msg in client.iter_messages(chat): if not msg.media or isinstance(msg.media, telethon.types.MessageMediaWebpage): print(msg.text) # export however needed
Thank you very much
Обсуждают сегодня