Type Update released (version 4.1.0)
Sept. 16, 2018, 12:52 a.m.
Today Botfather version 4.1.0, better known as the Type Update released. 9 different types have been added to botfahters script engine and the APIs methods have been updated to take some of them as parameters.
The inbuild types come with a lot of methods. For instance one can get a random point from within a rectangle or create an image providing a color and a size.
Check out botfathers documentation to learn about more than 100 handy methods and how to use them.
Botfather 3.x.x scripts are not compatible with botfather 4.1.0. Some API methods have been deleted and others have been moved to types.
Obviously patching old scripts is possible though. Keep an eye open where you may replace custom types with unbuild types and replace two variables such as x and y with a point.
In addition to all the new types a new API has been added. With the PathFinder API one can find the fastest path from one node to another in a graph.
The graph can represent anything like website sitemaps or a games complex map system.
And now the boring changes: We fixed a lot of bugs and even memory leaks (woops) and prepared our codebase for the upcoming 5.0 update.
Not hyped for 5.0 yet? Men, we will improve the GUI by a lot, allow multiple browser and even multiple bots running at the same time.