Bots are third-party applications that run inside Potato. Users can interact with the bot by sending messages, commands, and inline requests. You control your bot via HTTPS requests, sending usRobot API。

To name a few examples, you can use bots to:
Get customized notifications and news. Bots can act as smart newspapers, sending you relevant content as soon as it’s published.
Integrate with other services. Bots can enrich Potato Chat with content from external services.
GIF,BotMusic,BotVote
Accept payments from Potato users. Bots can provide paid services or function as virtual stores.
Create custom tools. Bots may provide you with reminders, weather reports, translations, formatting, or other services.
sticker robot
Do pretty much anything else. Except washing dishes – robots suck at washing dishes.
Essentially, Potato bots are special accounts that require no additional phone number to set up. Users can interact with the bot in two ways:

There's...that one uses a robot. Just useBotFather(described below) and follow a few simple steps. Once you have created the bot and received the authorization token, go to the botAPIManual to see what you can teach a robot to do.
You can also check out some code examples here »
potato.im/<bot_username>There are many robots in Potato (including official Potato robots and third-party robots). To facilitate users to find each robot, Potato provides a convenient search method. Users can find bots in the following ways:
Open Potato and there is a navigation bar at the bottom. Click "Discover" and you will see Bots Mall.
Then click on the robot mall, where the official Potato robot will be displayed, such as@GIFBot, BotMusic and BotGif, etc. After approval, third-party robots can also be displayed in the robot mall.
If there is an audit or any questions please@BotSupport。

The Potato bot is unique in many ways - we offer two keyboards, additional default command interfaces and deep linking, as well as text formatting, and much more.

Users can interact with your bot via inline queries directly from the text input field in any chat. All they have to do is send a message with your bot's username and enter their query.
After receiving a query, your bot can return some results. As soon as the user clicks on one of them, the message is sent to the currently open chat room. This way, people can request content from your bot in their chat, group, or channel.

We also provide easy functionality for your bot to switch between online and PM modes.
Read more about direct mode »
Traditional chatbots can certainly be taught to understand human language. But sometimes you need more formal feedback from users - and that's where custom keyboards can be very helpful.
Whenever your bot sends a message, it can deliver a special keyboard with preset reply options (see ReplyKeyboardMarkup). The Potato app that receives a message will display your keyboard to the user. Tapping any button immediately sends the corresponding command. This way you can dramatically simplify user interaction with the bot.
We currently support text and emoji for buttons. Here are some custom keyboard examples:



For more technical information on custom keyboards, seeRobot APIManual (see sendMessage).
Sometimes you'd rather do things without sending messages to the chat. For example, when a user changes settings or scrolls through search results. In this case, you can use the inline keyboard integrated directly into the corresponding message.
Unlike custom reply keyboards, pressing the inline keyboard's buttons will not send a message to the chat room. In contrast, the inline keyboard supports buttons that operate behind the scenes: callback buttons, URL buttons, and switch to inline buttons.
When using the callback button, your bot can update an existing message (or just the keyboard) to keep the chat tidy. Check out these example bots to see the inline keyboard in action: @music, @gif, @sticker.
Read more about inline keyboard and on-the-fly editing »

Commands provide a more flexible way to communicate with bots. The following syntax can be used:
Commands must always start with a "/" symbol and must not exceed 32 characters. Commands can use Latin letters, numbers, and underscores. To give a few examples:
Messages starting with a slash are always delivered to the bot (replied to both its message and the bot's message by username @mention. The Potato app will:/command [optional] [argument]/get_messages_stats/set_timer 10min Alarm!/get_timezone London, UK

If there are multiple bots in a group, you can add the bot username to the command to avoid confusion:
This is done automatically when selecting a command via the suggestion list. Remember, your bot needs to be able to handle the commands immediately following its username./start@TriviaBot/start@ApocalypseBot
To make it easier for users to navigate the robot multiverse, we're asking all developers to support some basic commands. The Potato app will have interface shortcuts for these commands.
/start - Start interacting with the user, such as sending a greeting message. This command can also be used to pass additional parameters to the robot.
/help - Returns a help message. It could be a short paragraph describing what your bot can do, or a list of commands.
Users will see a start button when they first talk to your bot. Help and settings links will be available in the menu on the bot's profile page.
Formatting: bold, italics, fixed-width text, and inline links
You can use bold, italic, or lined text, as well as inline links, in your bot messages. Potato clients will render this information accordingly.
Read more Bot API Manual »
Bots are often added to groups to enhance communication between human users, for example by providing news, notifications about external services, or additional search functionality. This is especially true among work-related groups. Now, when you share a group with a bot, you tend to ask yourself: “How can I be sure this little guy isn’t selling my chat history to a competitor?” The answer is – Privacy Mode. Run in privacy mode
's bot will not receive all messages sent to the group by users. Instead, it just gets:
Jump to the top to learn everything about the Potato robot »
@GIFBot Be the only robot to rule all robots. It will help you create new bots and change the settings of existing bots.
Use the /newbot command to create a new robot.@GIFBotYou will be asked to enter your name and username, and then generate an authorization token for your new bot.
Your bot name will appear in contact information and elsewhere.
A username is a short name used for mentions and links. The username can be 5-32 characters long, regardless of case, but can only contain Latin letters, numbers, and underscores. Your bot username must end with "bot", such as "david_bot" or "DavidBot".
The token is a string like 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw and is used to authorize the bot and send requests to the bot API.Potato.im
If your existing token is compromised or lost, use the /token command to generate a new one.
The rest of the commands are pretty straightforward:
In addition to sending commands in private messages or groups, users can alsoInline queryInteract with your bot. If inline querying is enabled, users can query theText inputEnter your username and query into the fields to call your bot. The query is sent to your bot via an update. In this way, people cantheir chatRequest content from your bot in a , group, or channel without sending a message.

To enable this option, send /setinline command@BotFather, and provide placeholder text that the user will see in the input field after entering the robot name.
For related methods and objects, please seeRobot API Manual。




/manage
/manage
/doneAfter adding keywords, ADBot will kick users who send sensitive words out of the group and exclude them. For example, if you want to kick out all users who send URLs, you can filter for keywords like ".com" and "www."



/manage/kick
/captcha