Telegram Bot Command Reference¶
Every command the Diplomacy bot accepts. Arguments in <> are required, [] optional.
The button way¶
Most players never need to type a command after /start:
- ๐ฎ My games lists your games; tap one to open its game menu: the game's status (phase, deadline, who has ordered, wait flags, draw vote) and buttons for ๐ Order all units, ๐ฏ One unit (in a winter adjustment phase ๐๏ธ Builds or โ๏ธ Disbands, with what you owe shown under the status, and neither when you owe nothing), ๐ My orders (with ๐ Clear and ๐ History), ๐บ Map, ๐ฌ Messages, โฐ Deadline, โ Wait for me / โ I'm ready (when the game auto-processes), ๐ณ๏ธ Concede, and โ for the game's creator only โ โ๏ธ Process turn now. ๐ Refresh redraws the status. Once a game has ended its menu offers only ๐บ Final map, ๐ Order history and ๐ฌ Messages. With just one game, ๐ฎ My games opens its menu straight away.
- ๐ฒ Find a game lists open games you can join (๐ = private; tap a power and the bot asks for the password, then deletes your message), the queue for the next new game, and a solo demo.
- Notifications โ "turn processed", "deadline in 10 minutes", "you joined", "game is full" โ carry ๐ Enter orders, ๐บ Map and ๐ฎ Game menu buttons for that game.
- ๐ฌ Messages in the game menu shows recent messages and a button per power, ๐ฃ Everyone
and ๐ต๏ธ Rumour (anonymous): tap one, then just type your message.
/cancelstops.
Your current game¶
Commands act on your current game, so the game id is only needed to switch: it is the
game you last opened in the game menu, named in a command, joined, or tapped a notification
button for. /game <id> switches explicitly. With only one game, that game is always
current. (/deadline, /quit, /replace, /dummy and /autoprocess still take the id
first, because a bare number there would be ambiguous.)
Getting started¶
| Command | Description |
|---|---|
/start |
Registers you (nothing else to do) and shows the main keyboard: ๐ฎ My games ยท ๐ฒ Find a game ยท โน๏ธ Help. |
/help |
Show all available commands. |
/rules |
Basic Diplomacy rules and order syntax. |
/examples |
Order syntax examples. |
/refresh |
Rebuild the keyboard menu if it gets out of sync. |
/register |
Gone in 4.0.0: it only answers that /start registers you (joining and queueing do too). |
/nickname [name] |
Show your nickname, set it (/nickname Talleyrand), or clear it (/nickname -). Other players see your power, plus this nickname if you set one. 2โ24 letters, digits, spaces, ., _ or -; unique. Your Telegram name is never stored. |
/cancel |
Stop writing a message or password the bot asked for. |
/feedback <text> |
Send a report or an idea to the maintainer; your current game and its phase are attached. |
Account linking¶
| Command | Description |
|---|---|
/link <code> |
Link this Telegram account to a browser account. |
Get the code from the web app: Link Telegram โ Generate link code, then send
/link 123456 here. One Telegram account can be linked to one browser account; unlink from
the web app if you need to re-link. If you played here before registering on the web, the
link moves your new web login onto this Telegram account and its games (then log in again in
the browser), as long as the web account has not joined a game yet.
Game management¶
| Command | Description |
|---|---|
/games |
Your games, as buttons that open each game's menu (โญ marks the current game). |
/game [game_id] |
Open a game's menu, and make it your current game. |
/findgame |
Open games you could join, the queue, and the solo demo โ the ๐ฒ Find a game key. |
/join <game_id> |
Shows a menu of available powers to join as. In a ๐ฒ random-powers game, one Join (random power) button instead. |
/join <game_id> random [password] |
Join a ๐ฒ random-powers game: the bot deals you one of the open powers. Naming a power there is refused. |
/join <game_id> <power> |
Join directly as a specific power, skipping the menu. |
/join <game_id> <power> <password> |
Join a private game (๐ in the game list). Ask the game's creator for the password. The bot deletes your message afterwards so the password doesn't stay in the chat. Five wrong guesses lock you out of that game for 15 minutes. |
/quit <game_id> |
Leave a game. Your seat is vacated โ units and any orders you submitted stay exactly as they are for whoever takes it over โ and you can no longer act for that power (or see it under /games). Until someone takes the seat with /replace, its units hold every turn. |
/concede [game_id] |
Give up for good, after a yes/no confirmation (also ๐ณ๏ธ Concede in the game menu). Your units are removed and your supply centres become neutral; the others play on. The API's refusal (already conceded, game over) is shown as worded. |
/replace <game_id> <power> [password] |
Take over a vacated power (a private game needs its password). /join <game_id> <power> on a vacated seat does the same thing. Not in a random-powers game, where /join deals the vacated seats at random. |
/wait |
Join the queue for a new game (the "โณ Queue for the next new game" button); a game is created automatically once 7 players are waiting, and everyone in the queue is messaged with their assigned power. The queue is stored server-side, so it survives a bot restart. |
/leavequeue |
Leave the queue (/unwait still works). |
/players [game_id] |
List all players and their powers. |
/status [game_id] |
Current phase, deadline, who has submitted orders, and the draw-vote tally. |
/draw [game_id] |
Vote yes to end the game as a draw. If your vote completes quorum โ every surviving power has voted yes โ the game ends immediately. |
/nodraw [game_id] |
Withdraw a draw vote you previously cast; the reply says so only if you had one. Votes last until the phase is processed. |
/deadline <game_id> <hours> |
Set the order deadline that many hours from now. The turn is processed automatically when it passes (units without orders hold), everyone in the game is told, and a reminder goes out 10 minutes before. The deadline is spent once its phase is processed; only a weekly schedule (below) sets the next one for you. |
/deadline <game_id> clear |
Remove the deadline. |
/deadline <game_id> |
Show the current deadline and the weekly schedule, if any. |
/deadline <game_id> schedule <days> <HH:MM> [timezone] |
A deadline every week at those times, e.g. schedule mon,wed,fri 16:00 Europe/Helsinki (days may be names, ranges such as mon-fri, or daily; separate groups with different times by ;, e.g. mon-fri 18:00; sun 12:00). The timezone is an IANA name and defaults to UTC. Every phase, retreats and builds included, is then due at the next slot at least an hour away, armed when the game fills and after each turn. A one-off /deadline <game_id> <hours> still overrides the current phase only. Everyone is told. |
/deadline <game_id> schedule off |
Stop the weekly schedule. The current deadline stays; later phases get none unless someone sets one. |
| โฐ Deadline (game menu) | Propose 12h / 24h / 48h / no deadline to a majority vote, vote โ
/โ on a pending proposal, or withdraw your own. (/deadline <game_id> propose <hours\|clear> [vote_hours], vote <yes\|no> and withdraw do the same by typing.) |
/autoprocess <game_id> on\|off |
Any player: process each turn the moment every power with something to order has sent an order for every unit that must act (to keep a unit still, order it to hold) (civil-disorder powers are never waited on), unless someone is /notready. A deadline still applies. Off by default. |
/notready [game_id] |
Ask the table to wait before the turn auto-processes ("I'm still negotiating"). Lasts until /ready or the end of the phase. Never stops a deadline. |
/ready [game_id] |
Lower your wait flag; if everything else is in, the turn is processed at once. |
/dummy <game_id> <power> [off] |
Game creator only: leave an empty seat to civil disorder (it holds, disbands when it must, is never waited on and never votes), or add off to open it for a player again. Only an empty seat can be left to civil disorder, and at least one seat stays for a player. |
The solo demo¶
๐ฒ Find a game โ ๐ฎ Solo demo starts a game where you are Germany and the other six powers are played by the server with simple computer moves. It processes each turn as soon as all your units have orders.
Orders¶
| Command | Description |
|---|---|
/orderall [game_id] |
Order all your units โ the bot shows each unit that must act this phase in turn (or each build/disband slot), you pick from its legal orders, then review the list and submit it in one go. โฌ
๏ธ Back on every step, and โญ Skip on every step but a build (there, โญ๏ธ Waive build is the skip); a skipped unit keeps any earlier order, or holds. In a winter adjustment phase the walk keeps the builds or disbands you already ordered (by /order or an earlier walk): it shows them, walks only the slots still free and offers only the sites still free, and adds your picks to them. With every slot already ordered it lists them and offers ๐ Change them, a walk over every slot whose submit replaces them. Same as ๐ Order all units / ๐ Enter orders. |
/selectunit [game_id] |
Order a single unit โ pick a unit, then pick from its legal orders; it is sent at once. |
/orders [game_id] <order>; <order>; โฆ |
Type orders. They are added to the orders you already sent this phase; a new order for a unit replaces that unit's earlier one. /order is the same command. |
/myorders [game_id] |
Show your submitted orders for the current phase. |
/clearorders [game_id], /clear [game_id] |
Clear your submitted orders so you can resubmit. |
/orderhistory [game_id] |
Orders from previous turns, grouped by turn and power. |
/processturn [game_id] |
The game's creator only (the โ๏ธ Process turn now button): adjudicate the current phase now. Refused while any power is neither taken nor a /dummy (the reply names them). Otherwise, if some powers haven't submitted, asks for confirmation first (their units would hold). Everyone else's turns end at the deadline, or when all orders are in with auto-process on. |
Separate multiple orders with semicolons. The buttons are the easiest route โ they only ever offer orders that are legal in the current phase, including retreats and builds.
Order syntax¶
A PAR - BUR Army Paris moves to Burgundy
F BRE H Fleet Brest holds
A MAR S A PAR - BUR Marseilles supports Paris โ Burgundy
F BRE S A PAR Brest supports Paris to hold
F BRE S A PAR H The same, with the hold written out
F NTH C A LON - BEL North Sea convoys London โ Belgium
A LON - BEL VIA Move explicitly via convoy (the bot's button reads "(by convoy)")
A MUN R TYR Retreat (retreat phase)
D A PAR Disband
BUILD A PAR Build an army
BUILD F STP/SC Build a fleet, naming the coast
WAIVE Waive a build
Parsing is case-insensitive and accepts the usual province abbreviations and aliases.
Messages¶
| Command | Description |
|---|---|
/message [game_id] <power> <text> |
Private message to one power. Or ๐ฌ Messages in the game menu, tap the power, and type. |
/broadcast [game_id] <text> |
Message all players. Also posted to the linked channel, if any. |
/rumour [game_id] <text> (or /rumor) |
A broadcast that names nobody: every player and the game's group read it, and nobody is told who sent it. Your own rumours show as "๐ต๏ธ Rumour (you, FRANCE)" to you only. |
/messages [game_id] |
Broadcasts plus private messages to and from you, each line showing when (in UTC, e.g. 5 Oct 14:03) and which power sent it. |
/queue |
Whether the game server is reachable, and your orders/messages still waiting to be delivered to it, with the time you sent each. |
A message (private, broadcast or rumour) can be at most 3500 characters, and an empty one isn't sent: the bot says why instead.
When the game server is unreachable¶
The bot runs on a different machine from the game server. If the link between them is down when you send orders or a message, the bot replies that it has queued the command with the time you sent it, delivers it automatically once the server is back, and messages you with the result. Nothing is lost. Two things to know:
- A message is recorded with the time you wrote it, and the recipient sees that time.
- Orders that could not be delivered before the turn was processed are not applied to the next turn; the bot tells you exactly which ones did not make it.
Everything else (maps, status, joining) needs the server and simply reports that it is unreachable until it returns. Notifications from the server (turn processed, reminders, messages to you) are held on the server side and arrive when the link is back, prefixed with the time they were created if they were delayed.
Maps¶
| Command | Description |
|---|---|
/map [game_id], /viewmap [game_id] |
Current board as a PNG. |
/replay <game_id> <turn> |
The map for a past turn. |
Playing in a Telegram group¶
A game can belong to a Telegram group. The group then gets two maps after every
processed turn (the orders, drawn on the board they were given on and coloured by
what they did, then the result), deadline reminders, "the game is full" and players' broadcasts, and only members
of that group can see or join the game (๐ฒ Find a game lists it only for them; the
website does not list it). Orders, private messages and the game menu always stay in
your private chat with the bot: in a group, the bot refuses those commands and
offers a link to a private chat instead (deleting the command first if it is a group
admin; the notice never names the command, so the group can't tell a rumour was coming).
Commands addressed to another bot (/weather@OtherBot) and commands this bot doesn't
have are left alone. Buttons in group posts are links that open that private chat.
Send these in the group:
| Command | Description |
|---|---|
/newgame anonymous / /newgame public |
Create a game for this group, choosing how players are named (fixed for the game's life): anonymous -- everyone is known only by their power, and messages and announcements name the power alone; public -- nicknames (/nickname) are shown next to powers. A bare /newgame explains the two and creates nothing. Add random (/newgame anonymous random) to deal the powers at random: nobody picks, each joiner is given an open power. Fixed for the game's life too. You become its creator. The bot posts a Join button that opens a private chat to pick a power. Turns are processed as soon as every order is in (anyone can ask the table to wait). |
/linkgroup [game_id] |
Make one of your existing games this group's game. A group has one game: if it already had another, that one is detached, and the reply says which -- but only if you play in that other game too. (/newgame does the same; if it can't have the group, no game is created.) A game is linked to a group only from inside that group: there is no way to link one by typing a chat id. /link_channel is the old name. |
/unlinkgroup [game_id] |
Detach the group's game (or the game you name, if it is this group's). |
/status |
This group's game: phase, deadline and who has ordered (not the game you last used in private). It never says which power you play. With no game linked, it says how to link one. |
/viewmap (or /map), /players |
This group's game, like /status: its current map, and its powers and seats. |
/help or /start |
How playing in a group works. |
In a group, /status, /viewmap, /map and /players only ever show the group's own
game. Naming that game's id is fine; naming any other game is refused ("This group's game
is Game 2 ...") -- ask about that one in a private chat with the bot.
The game's web page has Link a Telegram group: it opens Telegram, which asks which group
to add the bot to and then sends /start link_<game_id> there for you. The bot links the game
to that group if you play in it, exactly as /linkgroup <game_id> would. Sent in a private
chat, that /start links nothing. Once a group is linked, the page shows its name instead,
with an Unlink button (like /unlinkgroup), which asks you to confirm first: the group
stops getting the game's maps and reminders, and the game becomes open for anyone to join.
The bot then tells the group the game was unlinked from the web page and how to link it again,
without saying who did it. Only players of the game see either.
Advanced: channel settings¶
| Command | Description |
|---|---|
/channel_info <game_id> |
The linked group or channel and its settings. |
/channel_settings <game_id> <setting> <value> |
Change a setting: auto_post_maps, auto_post_broadcasts, auto_post_notifications (true/false, default true) or notification_level (all/important/none). |
/link_channel [game_id] |
The old name of /linkgroup; works only in the group being linked (in a private chat it says so). It takes no chat id, so nobody can link their game to a group they are not in. |
/unlink_channel <game_id> |
Detach a game's group or channel from a private chat (you must play in the game). |
Admin¶
| Command | Description |
|---|---|
/debug |
Shows your Telegram user id, username and name, as Telegram reports them (nothing of it is stored; the id is what an admin needs to find you). |
Troubleshooting¶
| Message | Fix |
|---|---|
| "You are not in game X" | Join it first: ๐ฒ Find a game, or /join. |
| "You're in N games" | Pick one with /game <id>, or open it from ๐ฎ My games; it stays picked. |
| "Order error: ..." or a โ line under "Orders received" | The reason is in the message. Check the syntax and that the order type suits the current phase โ the order buttons avoid both problems. |
| "Game N is not linked to a channel." | Send /linkgroup <game_id> in the group. |
| Bot doesn't respond | Confirm the bot and API are running, then send /start. |
More: FAQ and setup.