Answer the question
In order to leave comments, you need to log in
How to make the bot send the photo that comes first in the folder?
How to make the bot send the photo that comes first in the folder?
Answer the question
In order to leave comments, you need to log in
Use the os module , specifically the os.listdir() function, get a list of files, sort by name, and then send the desired file
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question