Object based file handling makes a lot of stuff easier and we have alread started integrating it into PTB by accepting pathlib.Path objects as file input in case of local bot api servers.
We should try to use it wherever possible throughout the examples & lib, arguably even tests. This includes, but is not limited to, every open(...) .
edit: we should probably also check the wiki
Object based file handling makes a lot of stuff easier and we have alread started integrating it into PTB by accepting
pathlib.Pathobjects as file input in case of local bot api servers.We should try to use it wherever possible throughout the examples & lib, arguably even tests. This includes, but is not limited to, every
open(...).edit: we should probably also check the wiki