Since layer 102, there are two access_hash. One with the min flag,
and one without it. This was causing channel invalid errors.
access_hash with min flag set can only be used to fetch files such
as profile pictures.
access_hash with min flag unset can be used under all circumstances.
Previously, the library did not distinguish between these, so it was
caching the hash that could hardly be used for anything.
With this change, only the "full" access_hash is stored, which will
work for any methods.
See also: https://core.telegram.org/api/min
Excepting ValueError when creating the SQLiteSession could hide
other errors (e.g. using a newer session file on an older version
of the library). Instead, the original error is raised, as if
sqlite3 was being imported within its __init__ method.
While something nice to have if supported, it just causes problems
for people trying to use the same session accross systems having
different sqlite versions. See https://t.me/TelethonChat/36771.