MyChat Scripts Engine: functions to work with GeoIP

MyChat Scripts Engine: functions to work with GeoIP

"For developers", "Server scripts", "Functions description", "Integrations", "GeoIP"

 
List of functions to work with user geographical location by his IP address.

 

You should download GeoIP database (~130 Mb) from MyChat developer website. Extract ZIP file to the "C:\ProgramData\MyChat Server\integrations\geoip\" folder and then restart MyChat Server.

 

GeoIPGetFullInfoAsJSON

get full information as a JSON object by user IP address;

GeoIPGetQuickInfo

get brief information (country/city) by user IP address.

 

See also

Full list of MyChat integrations with other services