0

How do I scrape photos or videos from a group on Telegram using either Pyrogram or Telethon? I know how to make a client and so forth, but not sure which functions to call (I have already read the documentation).

I want the videos as mp4 files, and photos as jpg or jpeg.

  • 2
    Well if you've read the complete documentation you should have seen the methods you can use for that. Please include a [mre]. – 0stone0 Mar 27 '23 at 10:55

1 Answers1

0

You can use Client.get_chat_history() in Pyrogram and use offset argument to get all messages. Then check if messages has video or photo and if they have it download it using Message.download().

Mahbod
  • 16
  • 2