Custom Browser User Agent (version 6.6.0)

October 7, 2020

Due to popular request, the Botfather browsers can now have custom user agent strings. Two new methods were added to the Browser type allowing a custom user agent string to be set and reset.

Use case

Certain websites’ behavior is based on the user agent string the browser provides. Being able to alter the user agent string allows simulating different browsers. This is useful for testing websites or web apps that expect a custom user agent string.