Countries and TimezonesUSER-ONLY
User Walkthrough 41 of 50
Users can retrieve Telegram’s country and timezone data.
Countries
getCountries returns countries localized for a language. getCountryCode returns the country code detected for the current connection.
const countries = await client.getCountries("en");
const countryCode = await client.getCountryCode();
Timezones
getTimezones returns Telegram’s supported timezones.
const timezones = await client.getTimezones();