Skip to content
Logic for a Telegram Bot
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Plotatoe Bot

Plotatoe is a Telegram Math Bot. You give the bot a function with some parameters and then it creates an image with the plot of that function for you. Everything except the Telegram API is done from scratch. You can test it here:

How to use the bot

Usage is simple, just follow this pattern:

/plot f(x) start end step [options]

f(x) must be a function, with x as variable (i.e. 3*x). You can't put spaces in the function. The bot supports sum(+), substract(-), multiplication(*), division(/) and power function(^). It respects the natural order of operations but you can include parenthesis.

start can be any double.

end can be any number greater than end.

step can be any number greater than zero and greater than end-start.

options are optional arguments you can add with a #.


#noplot -> it gives you the results without the image

#nolabel -> represents the function but without numbers (only start and end)

TelegramBots Library

Thanks to rubenlagus for the TelegramBots library - TelegramBots

You can’t perform that action at this time.