CLI tools

Команды

This page is in Russian.

Справочник: каждая команда, каждая опция, каждый код возврата. Страница собирается из самой программы, поэтому описать версию, которой не существует, она не может.

Как устроена строка:

max [профиль] [опции] <команда> <действие> [аргументы]

Первое слово — профиль, если оно не совпадает с именем команды: max personal chats list читает чаты профиля personal, а max chats list — профиля по умолчанию. То же самое говорит переменная MAX_PROFILE; без неё профиль называется default.

⚠ Описания команд и опций ниже — ровно те, что печатает max --help, то есть по-английски. Это не недоработка перевода: текст живёт в программе, и второй его копии здесь быть не должно.

Общие опции

Действуют на любую команду.

ОпцияЧто делает
-V, --versionoutput the version number.
-v, --verbosemore detail in what is shown: -v ids, -vv everything we know. По умолчанию: 0.
--jsonmachine-readable output: one JSON value on stdout, nothing else.
--jsonlmachine-readable output: one JSON object per line, for streaming and jq.
--quietdiagnostics off.
--traceone line per request on stderr: ids and timings, never message content.
--timeout <duration>give up on the whole command after this — 30s, 2m, 500ms.
--offlineanswer from what was recorded and never connect; fails if nothing was.
--recordkeep this run under max runs — ids and timings, never message content.
--no-recorddo not keep it, whatever the configuration says.
--servestart max serve in the background if it is not running (the default).
--no-servedo not start it; log in on this command's own connection unless one is running.

max session

the stored MAX session for this profile

max session start

log this profile in to MAX

max session start [method]
АргументЧто это
methodнеобязательныйtoken (pasted or piped), qr, qr-chrome or sms. Одно из: token, qr, qr-chrome, sms. По умолчанию: token.

max session end

forget the stored session for this profile

max session end

max account

the account this profile is logged in as

max account show

who this profile is logged in as; the phone number shows its last four digits

max account show [options]
ОпцияЧто делает
--show-phoneprint the whole phone number.

max account update

change the name, the description or the photo everyone sees on your profile

Меняет что-то в MAX.

max account update [options]
ОпцияЧто делает
--first-name <name>your first name.
--last-name <name>your last name.
--description <text>about you.
--photo <file>a new profile photo — an image file.

max account sessions

where else this account is logged in — not max session, which is this tool's own login

max account sessions list

every device and browser logged in to this account

max account sessions list

max account sessions end

log out every other device, your phone included; this one stays

Меняет что-то в MAX.

max account sessions end [options]
ОпцияЧто делает
--othersevery session but this one — the only choice MAX offers.
--yesyes, log the other devices out.

max chats

the chats this account is in

max chats list

chats, newest first, archived ones included

max chats list [options]
ОпцияЧто делает
--limit <n>how many to show.
--page <n>which page, starting at 1.
--allevery row, no paging.
--search <text>only chats whose name contains this; at least 3 characters.
--kind <kind>only chats of this kind: dialog, group, channel, saved.
--unreadonly chats with unread messages.

max chats show

one chat: its kind, unread count, last message time and who is in it

max chats show <chat>
АргументЧто это
chatобязательныйa chat: its id, or part of its title.

max chats events

who joined, left, was added or removed, and by whom — from the chat's service messages

max chats events <chat> [options]
АргументЧто это
chatобязательныйchat id, or part of a chat name.
ОпцияЧто делает
--since <id-or-time>from this message id, ISO 8601 time, or 2h / 1d ago; 7 days ago if not given.
--event <names>only these, comma-separated, as MAX names them: new, add, remove, pin….

max chats inspect

what a link leads to, without joining it

max chats inspect <link>
АргументЧто это
linkобязательныйan invite link, https://max.ru/join/…, or a public one, https://max.ru/.

max chats join

join a group or channel by its link; the others in it see that you joined

Меняет что-то в MAX.

max chats join <link>
АргументЧто это
linkобязательныйan invite link, https://max.ru/join/…, or a public one, https://max.ru/.

max chats mark-read

mark a chat read; the other side sees that you read it

Меняет что-то в MAX.

max chats mark-read <chat> [options]
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
ОпцияЧто делает
--until <message>only up to this message id; the newest by default.

max chats leave

leave a group or channel; the others in it see that you left

Меняет что-то в MAX.

max chats leave <chat>
АргументЧто это
chatобязательныйchat id, or part of a chat name.

max chats create

create a group or a channel; the people added are told

Меняет что-то в MAX.

max chats create <title> [person] [options]
АргументЧто это
titleобязательныйthe group's name.
personнеобязательныйpeople to add: an id, or part of a name.
ОпцияЧто делает
--channela private channel instead of a group; people join it by its link.

max chats members

who is in a group or channel; add or remove people

max chats members list

everyone in a group or channel, from MAX: when their account was made and when they were last seen

max chats members list <chat>
АргументЧто это
chatобязательныйchat id, or part of a chat name.

max chats members add

add people; they are told

Меняет что-то в MAX.

max chats members add <chat> <person> [options]
АргументЧто это
chatобязательныйchat id, or part of a chat name.
personобязательныйan id, or part of a name.
ОпцияЧто делает
--historythe people added also see the messages from before they came.

max chats members remove

remove people; their messages stay

Меняет что-то в MAX.

max chats members remove <chat> <person>
АргументЧто это
chatобязательныйchat id, or part of a chat name.
personобязательныйan id, or part of a name.

max chats admins

give or take back a member's admin rights

max chats admins add

make a member an admin with these rights

Меняет что-то в MAX.

max chats admins add <chat> <person> [options]
АргументЧто это
chatобязательныйchat id, or part of a chat name.
personобязательныйan id, or part of a name.
ОпцияЧто делает
--can <rights>what they may do, comma-separated: read, members, admins, info, pin, link, post, edit, delete.

max chats admins remove

take an admin's rights back; they stay a member

Меняет что-то в MAX.

max chats admins remove <chat> <person>
АргументЧто это
chatобязательныйchat id, or part of a chat name.
personобязательныйan id, or part of a name.

max chats update

rename a group or channel, change its description, or turn one of its settings on or off

Меняет что-то в MAX.

max chats update <chat> [options]
АргументЧто это
chatобязательныйchat id, or part of a chat name.
ОпцияЧто делает
--title <title>the new name.
--description <text>the new description.
--all-can-pin <on|off>every member may pin messages.
--only-admins-add <on|off>only admins may add members.
--only-admins-call <on|off>only admins may start a call.
--only-owner-edits-info <on|off>only the owner may change the name and photo.
--members-see-link <on|off>members may see the invite link.

a group's invite link

the invite link, if you may see it

max chats link show <chat>
АргументЧто это
chatобязательныйchat id, or part of a chat name.

replace the invite link; the old one stops working

Меняет что-то в MAX.

max chats link reset <chat>
АргументЧто это
chatобязательныйchat id, or part of a chat name.

max chats folders

your chat folders

max chats folders list

your chat folders, in the order MAX shows them

max chats folders list

max chats folders create

create a chat folder

Меняет что-то в MAX.

max chats folders create <title> [options]
АргументЧто это
titleобязательныйthe folder's name; MAX refused 21 characters and took 15.
ОпцияЧто делает
--chat <chat>a chat to put in it, by id or name; repeat it for more.

max chats folders update

rename a folder, or change which chats are in it

Меняет что-то в MAX.

max chats folders update <folder> [options]
АргументЧто это
folderобязательныйfolder id, or its title exactly.
ОпцияЧто делает
--title <title>a new name.
--add <chat>put a chat in it; repeat it for more.
--remove <chat>take a chat out of it; repeat it for more.

max chats folders delete

delete a folder; the chats in it stay

Меняет что-то в MAX.

max chats folders delete <folder>
АргументЧто это
folderобязательныйfolder id, or its title exactly.

max chats rules

a group's moderation rules, kept on this machine

max chats rules show

the group's rules; the defaults, marked not saved, if it has none yet

max chats rules show <chat>
АргументЧто это
chatобязательныйchat id, or part of a chat name.

max chats rules set

change one rule; the group's first change writes every rule with its default

max chats rules set <chat> <key> <value>
АргументЧто это
chatобязательныйchat id, or part of a chat name.
keyобязательныйone of: trusted, blocked, blockedNames, links, invites, forwards, blockedPeople, flood.messages, flood.minutes, flood.action, newAccount.days, newAccount.action, consent.delete, consent.remove.
valueобязательныйsee max chats rules show; lists are comma-separated and replace the old one.

max chats rules unset

put one rule back to its default

max chats rules unset <chat> <key>
АргументЧто это
chatобязательныйchat id, or part of a chat name.
keyобязательныйone of: trusted, blocked, blockedNames, links, invites, forwards, blockedPeople, flood.messages, flood.minutes, flood.action, newAccount.days, newAccount.action, consent.delete, consent.remove.

max chats check

judge a group's new messages and members by its rules, and act as they allow

Меняет что-то в MAX.

max chats check <chat> [options]
АргументЧто это
chatобязательныйchat id, or part of a chat name.
ОпцияЧто делает
--since <id-or-time>judge what came after this message id, ISO 8601 time, or 2h / 1d ago; the saved point stays.
--dry-runjudge and plan; do nothing.
--allow-dangerousdo what a rule at consent level flag asks: delete messages, remove people.
--max-actions <n>at most this many actions in one check; 10 if not given.

max contacts

people you have a one-to-one chat with

max contacts list

people you have a one-to-one chat with

max contacts list [options]
ОпцияЧто делает
--limit <n>how many to show.
--page <n>which page, starting at 1.
--allevery row, no paging.
--order <recent|name>newest conversation first, or alphabetical. По умолчанию: recent.
--search <text>only people whose name or @username contains this.

max contacts show

one person and the chats you share with them

max contacts show <person>
АргументЧто это
personобязательныйtheir id, @username, or part of their name.

max contacts sync

forget where the last sync left off and take the whole list again

max contacts sync

max contacts lookup

who MAX has under a phone number — asks for it, or reads it from stdin

max contacts lookup

max contacts add

add a person to your contacts — contacts list still shows only people you have a dialog with

Меняет что-то в MAX.

max contacts add <person>
АргументЧто это
personобязательныйperson id — contacts lookup finds one — or part of a known name.

max contacts remove

remove a person from your contacts; the chat stays, a name you gave them may not

Меняет что-то в MAX.

max contacts remove <person>
АргументЧто это
personобязательныйperson id — contacts lookup finds one — or part of a known name.

max contacts block

stop a person from writing to you — they need not be a contact

Меняет что-то в MAX.

max contacts block <person>
АргументЧто это
personобязательныйperson id — contacts lookup finds one — or part of a known name.

max contacts unblock

let a blocked person write to you again

Меняет что-то в MAX.

max contacts unblock <person>
АргументЧто это
personобязательныйperson id — contacts lookup finds one — or part of a known name.

max contacts rename

give a person a name of your own — they do not see it

Меняет что-то в MAX.

max contacts rename <person> <first-name> [last-name]
АргументЧто это
personобязательныйperson id — contacts lookup finds one — or part of a known name.
first-nameобязательныйthe name you want to see for them.
last-nameнеобязательный

max contacts import

upload phone numbers to MAX and add the people it has under them

Меняет что-то в MAX.

max contacts import <file>
АргументЧто это
fileобязательныйone person per line: number, then a comma or a tab, then the name.

max messages

read and send messages in a chat

max messages list

a chat's messages, oldest to newest

max messages list <chat> [options]
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
ОпцияЧто делает
--limit <n>how many.
--before-id <id>only messages older than this message id.
--before-time <time>only messages older than this ISO 8601 time, or 2h / 1d ago.
--after-id <id>only messages newer than this message id.
--after-time <time>only messages newer than this ISO 8601 time, or 2h / 1d ago.
--transcribeturn voice messages not heard yet into text — by the messenger, or a model on this machine; can take minutes.
--model <id>which downloaded speech model hears them, with --transcribe; models audio list shows them.
--mark-readalso mark the chat read up to the newest message shown; the other person sees it.

search the local store — what was read, fetched or kept by serve; never asks the messenger

max messages search <text> [options]
АргументЧто это
textобязательныйevery word must appear, as a word or the start of one: квартир finds квартира.
ОпцияЧто делает
--chat <chat>only this chat: a chat: its id, or part of its title.
--limit <n>how many.
--regexthe words are one regular expression, case-insensitive, tested against every stored text.

max messages show

one message, by its chat and id or by its msg: locator

max messages show <chat> [message]
АргументЧто это
chatобязательныйa chat: its id, or part of its title; or a msg: locator, with no message id after it.
messageнеобязательныйthe message id.

max messages context

a message and what came either side of it, oldest first

max messages context <chat> [message] [options]
АргументЧто это
chatобязательныйa chat: its id, or part of its title; or a msg: locator, with no message id after it.
messageнеобязательныйthe message id.
ОпцияЧто делает
--before-n <n>how many before it. По умолчанию: 5.
--after-n <n>how many after it. По умолчанию: 5.

why a message is in its conversation: each link it has, and the chain of answers back to the start

max messages links <chat> <message>
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
messageобязательныйthe message id.

max messages download

save a message's photos, files, videos and audio to a directory

max messages download <chat> <message> [options]
АргументЧто это
chatобязательныйchat id, or part of a chat name.
messageобязательныйmessage id.
ОпцияЧто делает
--output <dir>where to save them. По умолчанию: ..

max messages transcribe

turn a voice message into text, on this machine — the recording goes nowhere

max messages transcribe <chat> <message> [options]
АргументЧто это
chatобязательныйchat id, or part of a chat name.
messageобязательныйid of a voice message.
ОпцияЧто делает
--model <id>which downloaded speech model to use; max models audio list shows them.

max messages send

send a text message; without [text], the text is read from stdin

Меняет что-то в MAX.

max messages send <chat> [text] [options]
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
textнеобязательныйthe message.
ОпцияЧто делает
--reply-to <message>answer this message, by its id in the same chat.
--send-id <id>repeat a send whose outcome was unknown, without risking a second copy.
--silentdeliver without a notification.
--no-previewno preview card for a link in the text.
--mdread bold, italic, ~~struck~~ and code in the text; \ keeps a mark literal.
--file <file>attach a file; the text becomes its caption.
--photo <file>attach a .jpg, .png or .webp as a photo; the text becomes its caption.
--as-filesend the --file as a file to download, a video included.
--voice <file>send an Ogg Opus file as a voice message, alone, with no text.
--allow-any-filesend a file even from a hidden folder, ~/.ssh or this CLI's own folders.
--at-time <time>let the messenger send it later, even with this machine off: 2026-09-25T09:00 (local time), or 30m, 2h, 1d from now.

max messages scheduled

messages waiting to be sent later in a chat, soonest first; cancel one in the MAX app

max messages scheduled <chat>
АргументЧто это
chatобязательныйchat id, or part of a chat name.

max messages edit

change the text of your own message; the other side may have read it already

Меняет что-то в MAX.

max messages edit <chat> <message> [text] [options]
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
messageобязательныйthe id of your own message.
textнеобязательныйthe new text; without it, read from stdin.
ОпцияЧто делает
--mdread bold, italic, ~~struck~~ and code in the text; \ keeps a mark literal.

max messages delete

delete messages for you only; with --for-everyone, for everyone in the chat

Меняет что-то в MAX.

max messages delete <chat> <messages> [options]
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
messagesобязательныйthe message ids, at most 10.
ОпцияЧто делает
--for-everyonedelete for everyone in the chat, not only for you — they cannot get it back.
--allow-dangerousgo ahead without the question an ask level puts before a deletion.

max messages forward

forward one message to another chat

Меняет что-то в MAX.

max messages forward <chat> <message> [options]
АргументЧто это
chatобязательныйthe chat the message is in: a chat: its id, or part of its title.
messageобязательныйthe message id.
ОпцияЧто делает
--to <chat>where it goes: a chat: its id, or part of its title.
--silentdeliver it without a notification.
--send-id <id>repeat a forward whose outcome was unknown, without risking a second copy.

max messages pin

pin a message in a chat, quietly unless --notify

Меняет что-то в MAX.

max messages pin <chat> <message> [options]
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
messageобязательныйthe message id.
ОпцияЧто делает
--notifytell the chat's members about the pin.

max messages unpin

unpin a message in a chat

Меняет что-то в MAX.

max messages unpin <chat> <message>
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
messageобязательныйthe message id.

max store

the local store of messages

max store status

per chat: messages stored, the oldest and newest, and the stretches held completely

max store status [chat]
АргументЧто это
chatнеобязательныйa chat: its id, or part of its title.

max store fetch

fetch a chat's history into the local store, newest first; run it again to continue

max store fetch <chat> [options]
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
ОпцияЧто делает
--limit <n>at most this many messages in this run; 1200 if not given.
--page-size <n>how many messages one request asks for; 30 if not given.
--pause <duration>the least pause between pages, to stay under the provider's limits; each is up to twice that. По умолчанию: 5s.
--since-time <time>stop once it reaches messages older than this: ISO 8601, or 2h / 1d ago.
--last <n>stop once the newest n messages are held.
--backgroundrun as a job that outlives this command; store jobs show follows it.
--estimateonly estimate how many messages, requests and minutes a full fetch would still take — from the store, no request.

max store jobs

background fetch jobs

max store jobs list

background fetch jobs, newest first

max store jobs list

max store jobs show

one background job — the newest when none is named — and what the store now holds of its chat

max store jobs show [job]
АргументЧто это
jobнеобязательныйthe job id store fetch --background printed.

max store jobs cancel

stop a running background job after its current page; a later fetch resumes where it stopped

max store jobs cancel <job>
АргументЧто это
jobобязательныйthe job id.

max store export

a chat's stored messages as JSON lines, oldest first; never asks the messenger

max store export <chat> [options]
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
ОпцияЧто делает
--format <format>jsonl (the default): one message per line; markdown: a transcript with a heading per day, replies and forwards quoted.
--since-time <time>only from this ISO 8601 time, or 30m / 2h / 1d ago, on.
--output <file>write JSON lines, or the transcript, to this new file, readable only by you.

max store clear

delete from the store the chats this account has left, with their messages

max store clear [options]
ОпцияЧто делает
--leftthe chats this account has left — the only thing this clears.
--allow-dangerousyes, delete — it cannot be undone, and a chat you left cannot be fetched again.

max store info

the store file: where it is, its size, its schema and how many rows it holds; changes nothing

max store info

max store check

whether the store is healthy — integrity, search indexes, disk, and which chats are behind

max store check

max store migrate

bring the store up to this build's schema, then normalize the messages stored before it

max store migrate

max store reindex

rebuild the word index and its typo vocabulary from the stored messages; loses no message

max store reindex

max store backup

copy the store into a new file, while it is in use; never overwrites a file

max store backup <file>
АргументЧто это
fileобязательныйthe new file.

max store restore

put a backup in place of the store; the store it replaces is kept beside it, never deleted

max store restore <file>
АргументЧто это
fileобязательныйa file store backup wrote.

max conversations

the conversations inside a chat, found in the stored messages by replies, mentions and who wrote next

max conversations build

find a chat's conversations in what the store holds, replacing the last build; never asks the messenger

max conversations build [options]
ОпцияЧто делает
--chat <chat>a chat: its id, or part of its title.

max conversations list

a chat's conversations, the newest first: when, how many messages, how many people

max conversations list [options]
ОпцияЧто делает
--chat <chat>a chat: its id, or part of its title.
--since-time <time>only those that started at this ISO 8601 time, or 30m / 2h / 1d ago, or later.
--limit <n>how many.

max conversations show

one conversation's messages, oldest first — by its id, or the one a message is in

max conversations show <conversation> [message]
АргументЧто это
conversationобязательныйa conversation id from conversations list; or a chat: its id, or part of its title, with a message.
messageнеобязательныйa message id in that chat: show the conversation it is in.

max conversations batches

windows of a chat for your own AI agent to link: which earlier message each one answers

max conversations batches status

how many messages still wait for an answer, in how many batches, and how much text

max conversations batches status [options]
ОпцияЧто делает
--chat <chat>a chat: its id, or part of its title.
--size <n>messages to answer per batch, 10–200; 50 by default.

max conversations batches next

the next window to answer, with the messages before it; message text goes to stdout only

max conversations batches next [options]
ОпцияЧто делает
--chat <chat>a chat: its id, or part of its title.
--size <n>messages to answer per batch, 10–200; 50 by default.

your agent's answers: which earlier message each message of a batch answers

store your agent's answer to a batch, read as JSON from stdin: { "model", "answers": [{ "message", "parent", "confidence" }] }; all or nothing

max conversations links add [options]
ОпцияЧто делает
--batch <id>the batch id conversations batches next printed.

drop your agent's answers for a chat, or only one model's; messages are never touched

max conversations links clear [options]
ОпцияЧто делает
--chat <chat>a chat: its id, or part of its title.
--model <model>only the answers this model gave.

max models

models that run on this machine

max models audio

speech models for transcribing voice messages

max models audio list

the models max can use, which are downloaded, and which one is the default

max models audio list

max models audio download

download a speech model once, checked against the sha256 this version of max expects

max models audio download <model>
АргументЧто это
modelобязательныйa model id from max models audio list.

max polls

read a poll, vote in it, close your own, create one

max polls show

a poll and its answer ids, as the message carries it now

max polls show <chat> <message>
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
messageобязательныйthe id of the message that carries the poll.

max polls vote

vote in a poll, or take your vote back; the others see it unless the poll is anonymous

Меняет что-то в MAX.

max polls vote <chat> <message> [answers] [options]
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
messageобязательныйthe id of the message that carries the poll.
answersнеобязательныйanswer ids, as polls show prints them.
ОпцияЧто делает
--retracttake your vote back.

max polls close

close your own poll; nobody can vote after that, and it cannot be reopened

Меняет что-то в MAX.

max polls close <chat> <message>
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
messageобязательныйthe id of your own message that carries the poll.

max polls create

send a poll to a chat, as a message of its own; public unless --anonymous

Меняет что-то в MAX.

max polls create <chat> <question> <answers> [options]
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
questionобязательныйthe question.
answersобязательныйtwo answers or more.
ОпцияЧто делает
--multiplepeople may pick several answers.
--anonymousnobody sees who voted for what.
--revotepeople may change their vote.
--silentsend without a notification.
--send-id <id>repeat a create whose outcome was unknown, without risking a second poll.

max reactions

react to messages

max reactions add

put your reaction on a message; it replaces the one you had

Меняет что-то в MAX.

max reactions add <chat> <message> <emoji>
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
messageобязательныйthe message id.
emojiобязательныйone emoji, for example 👍.

max reactions remove

take your reaction off a message

Меняет что-то в MAX.

max reactions remove <chat> <message>
АргументЧто это
chatобязательныйa chat: its id, or part of its title.
messageобязательныйthe message id.

max recipients

the chats this profile may send to, when the list is on

max recipients list

the chats on the list; empty and off until the first add

max recipients list

max recipients add

allow sending to this chat; the first add turns the list on

max recipients add <chat>
АргументЧто это
chatобязательныйchat id, or part of a chat name.

max recipients remove

stop allowing this chat; the list stays on

max recipients remove <chat>
АргументЧто это
chatобязательныйchat id, or the title as the list shows it.

max recipients clear

empty the list and turn it off: this profile may send to any chat again

max recipients clear

max sends

every attempt to send from this profile — never the text

max sends list

attempts to send, newest first: sent, refused, failed, or not known

max sends list [options]
ОпцияЧто делает
--limit <n>how many to show. По умолчанию: 20.

max inbox

other people's unread messages in every chat; --new for what arrived since the last check

max inbox [options]
ОпцияЧто делает
--newwhat arrived since the last check, each message once — for scheduled runs.
--since <id-or-time>what arrived after this message id, ISO 8601 time, or 2h / 1d ago; the saved point stays put.
--limit <n>at most this many per chat, the newest.
--transcribehear voice messages not heard yet, on this machine; slow, the model must be downloaded.
--model <id>which downloaded speech model hears them; max models audio list shows them.

max review

every message, yours too, in chats that changed since a point — for reviewing who owes what

max review [options]
ОпцияЧто делает
--since <id-or-time>where the last review ended — a message id, ISO 8601 time, or 2h / 1d ago; 3 days ago if not given.
--transcribetranscribe voice messages not heard yet; slow, and the model must be downloaded.
--chat <chat>only this chat: an id, or part of a chat name.
--unanswered [hours]only questions to you or a group's admins that nobody answered, asked at least this long ago; 24 hours if not given.

max serve

stay connected to MAX and stream new messages to max watch, until Ctrl-C

max serve [options]
ОпцияЧто делает
--idle <duration>stop after this long with nobody using it — 15m, 1h is 60m.

max server

max serve in the background: start, stop, restart, status, logs; install adds a systemd or launchd unit

max server start

start serve in the background — through the unit if one is installed — and answer once it connects

max server start [options]
ОпцияЧто делает
--idle <duration>stop after this long with nobody using it — 15m, 1h.

max server stop

stop this profile's serve — through the unit if it runs under one

max server stop

max server restart

stop it and start it again

max server restart [options]
ОпцияЧто делает
--idle <duration>stop after this long with nobody using it — 15m, 1h.

max server status

whether serve runs for this profile, since when, who started it, and the unit if there is one

max server status

max server logs

serve's latest log lines — from the journal under systemd, else its log file

max server logs [options]
ОпцияЧто делает
-n, --lines <n>how many lines. По умолчанию: 50.

max server install

write a systemd user unit or a launchd agent for this profile; starts nothing

max server install

max server uninstall

remove this profile's unit; stop it first

max server uninstall

max watch

print new messages as they arrive, from a running max serve

max watch [options]
ОпцияЧто делает
--eventsalso print edits, deletions and reactions; every line then names its event.

max config

the settings in force, and where each one came from

max config show

the profile, the profiles that exist, and each setting with where it came from

max config show [options]
ОпцияЧто делает
--botthe settings a max bot command on this profile gets, rather than the personal account's.

max config set

save a setting to the configuration file

max config set <setting> <value> [options]
АргументЧто это
settingобязательныйone of: limit, timeoutMs, color, record, keepRunsForDays, readOnly, allow, sendsPerHour, senderColors, serve, mcpTools, readOtherBots, updateCheck, skillHint, transcribeModel, defaultProfile.
valueобязательныйa number, true or false, or for allow a list like send,reaction.
ОпцияЧто делает
--defaultschange what every profile gets, rather than this profile.
--personalonly for personal accounts — the personal section of the file.
--botonly for bots — the bot section of the file.

max config unset

remove a setting from the configuration file

max config unset <setting> [options]
АргументЧто это
settingобязательныйone of: limit, timeoutMs, color, record, keepRunsForDays, readOnly, allow, sendsPerHour, senderColors, serve, mcpTools, readOtherBots, updateCheck, skillHint, transcribeModel, defaultProfile.
ОпцияЧто делает
--defaultschange what every profile gets, rather than this profile.
--personalonly for personal accounts — the personal section of the file.
--botonly for bots — the bot section of the file.

max doctor

the state this installation is in, without contacting MAX unless --online

max doctor [options]
ОпцияЧто делает
--onlinealso log in once, read one chat and start the MCP server; sends nothing.

max doctor report

what a problem report holds and where it goes; writes nothing

max doctor report create

write a problem report to a file, and print how to send it

max doctor report create [options]
ОпцияЧто делает
--run <id>the run the report is about; the newest failed one if not given.
--output <file>where to write it; a new file in this directory if not given.

max cache

the local copy of chats, contacts and messages

max cache clear

forget everything this profile has cached

max cache clear [options]
ОпцияЧто делает
--leftonly the chats this account has left, with their messages.

max runs

recorded runs — what this tool did, and when

max runs list

recorded runs, newest first

max runs list [options]
ОпцияЧто делает
--limit <n>how many to show. По умолчанию: 20.

max runs show

one run: what it was, and one line per request

max runs show <run-id>
АргументЧто это
run-idобязательныйan id from max runs list.

max runs path

the directory holding one run

max runs path <run-id>
АргументЧто это
run-idобязательныйan id from max runs list.

max skill

the instructions an agent is given for this tool

max skill show

print SKILL.md — max skill install puts it where Claude Code, Codex and Gemini CLI look for it

max skill show

max skill install

write SKILL.md to ~/.claude/skills/max-cli/ (Claude Code) and ~/.agents/skills/max-cli/ (Codex, Gemini CLI)

max skill install [options]
ОпцияЧто делает
--for <agents>which agents to install for. Одно из: claude, agents, all. По умолчанию: all.

max commands

every command, option and exit code as JSON — what an agent reads instead of --help

max commands

max upgrade

upgrade max with the package manager that installed it; --check only looks

max upgrade [options]
ОпцияЧто делает
--checksay whether a newer version exists, and install nothing.

max complete

shell completion: max complete zsh prints the script to source

max complete [words]
АргументЧто это
wordsнеобязательный

max mcp

serve this profile to an agent over MCP, on stdin and stdout — claude mcp add max -- max mcp

max mcp [options]
ОпцияЧто делает
--allow-sendoffer the send tool; without it the server can only read.
--confirm-sendshow the owner every write the server offers — sends, edits, reactions, mcpTools — in a form from the server first.
--allow-mark-readoffer the tool that marks a chat read; the other person sees it.
--allow-deleteoffer the tool that deletes messages for you only; it cannot be undone.
--allow-moderatelet max_chats_check act on a group's rules — delete others' messages, remove people — where they allow it.

max mcp config

print the mcpServers entry for Claude Desktop, Cursor and others, with full paths; writes nothing

max mcp config [options]
ОпцияЧто делает
--allow-sendoffer the send tool; without it the server can only read.
--confirm-sendshow the owner every write the server offers — sends, edits, reactions, mcpTools — in a form from the server first.
--allow-mark-readoffer the tool that marks a chat read; the other person sees it.
--allow-deleteoffer the tool that deletes messages for you only; it cannot be undone.
--allow-moderatelet max_chats_check act on a group's rules — delete others' messages, remove people — where they allow it.

max bot

a MAX bot, through the official Bot API and a bot token — not your personal account

max bot auth

the bot token this profile uses

max bot auth set

check a bot token with MAX, then keep it — typed at a hidden prompt or piped on stdin

max bot auth set

max bot auth show

where this profile's bot token comes from, and which bot it is

max bot auth show

max bot auth remove

forget this profile's bot token

max bot auth remove

max bot me

the bot this profile's token belongs to: name, id, description, commands

max bot me

max bot list

every name on this machine that has a bot token; --check asks MAX which bot each is

max bot list [options]
ОпцияЧто делает
--checkask MAX who each bot is.

max bot messages

messages in the chats this bot is in

max bot messages list

the latest messages in a chat (--limit, up to 100) — its id, or the title of a chat this bot has seen; --offline answers from the local copy

max bot messages list <chat> [options]
АргументЧто это
chatобязательный
ОпцияЧто делает
--limit <n>how many, up to 100.

max bot messages get

one message by its id (mid.…)

max bot messages get <message>
АргументЧто это
messageобязательный

search the messages this bot has read, sent or received on this machine — the local copy only, newest first; by text, by --from, or both

max bot messages search [text] [options]
АргументЧто это
textнеобязательный
ОпцияЧто делает
--all-botsalso read every other bot's copy on this machine that readOtherBots allows.
--bots <profiles>also read these bots' copies, comma separated — each allowed by readOtherBots.
--limit <n>how many.
--from <who>only what this person wrote — an id, @username or part of a name; repeat it for any of several.

max bot messages between

what two or more people wrote in the chats they have all written in — from the local copy, grouped by chat, oldest first; --limit counts per chat. Common chats are the ones this copy saw each of them write in, not a member list from MAX

max bot messages between <people> [options]
АргументЧто это
peopleобязательный
ОпцияЧто делает
--all-botsalso read every other bot's copy on this machine that readOtherBots allows.
--bots <profiles>also read these bots' copies, comma separated — each allowed by readOtherBots.
--limit <n>how many of the latest messages from each chat.

max bot messages send

send a message as the bot — to a chat id, user:<id>, or the title of a chat it has seen; - reads stdin

Меняет что-то в MAX.

max bot messages send <chat> [text] [options]
АргументЧто это
chatобязательный
textнеобязательныйmay be left out with --file.
ОпцияЧто делает
--format <format>how the text is marked up. Одно из: markdown, html.
--reply-to <message>answer this message.
--silentno notification for the people in the chat.
--file <path>attach a file from disk: an image, video or audio by its extension, else a file.
--type <type>send --file as this kind instead of guessing. Одно из: image, video, audio, file.

max bot messages edit

replace the text of a message the bot sent; - reads stdin

Меняет что-то в MAX.

max bot messages edit <message> <text> [options]
АргументЧто это
messageобязательный
textобязательный
ОпцияЧто делает
--format <format>how the text is marked up. Одно из: markdown, html.

max bot messages delete

delete a message in a chat the bot can delete in

Меняет что-то в MAX.

max bot messages delete <message>
АргументЧто это
messageобязательный

max bot chats

the chats this bot is in — MAX gives a bot no list of them, so list shows the ones it has seen

max bot chats check

judge a group's new messages and joins by its rules, and act as they allow — as the bot

Меняет что-то в MAX.

max bot chats check <chat> [options]
АргументЧто это
chatобязательныйchat id, or the title of a chat this bot has seen.
ОпцияЧто делает
--since <time>judge what came after this ISO 8601 time; the saved point stays.
--dry-runjudge and plan; do nothing.
--allow-dangerousdo what a rule at consent level flag asks: delete messages, remove people.
--no-banremove without banning; by default a removed person cannot come back by the link.
--max-actions <n>at most this many actions in one check; 10 if not given.

max bot chats rules

a chat's moderation rules for this bot, kept on this machine

max bot chats rules show

the chat's rules; the defaults, marked not saved, if it has none yet

max bot chats rules show <chat>
АргументЧто это
chatобязательный

max bot chats rules set

change one rule — trusted, blocked, blockedNames, links, invites, forwards, blockedPeople, flood.messages, flood.minutes, flood.action, newAccount.days, newAccount.action, consent.delete, consent.remove

max bot chats rules set <chat> <key> <value>
АргументЧто это
chatобязательный
keyобязательный
valueобязательный

max bot chats rules unset

put one rule back to its default

max bot chats rules unset <chat> <key>
АргументЧто это
chatобязательный
keyобязательный

max bot chats list

chats this bot has seen on this machine — not a complete list from MAX

max bot chats list

max bot chats get

one chat from MAX, and remember it

max bot chats get <chat>
АргументЧто это
chatобязательный

max bot chats pin

pin a message in a chat

Меняет что-то в MAX.

max bot chats pin <chat> <message>
АргументЧто это
chatобязательный
messageобязательный

max bot chats unpin

unpin whatever is pinned in a chat

Меняет что-то в MAX.

max bot chats unpin <chat>
АргументЧто это
chatобязательный

max bot chats leave

the bot leaves the chat; only an admin can bring it back

Меняет что-то в MAX.

max bot chats leave <chat>
АргументЧто это
chatобязательный

max bot chats action

show an action to the chat: typing_on, sending_photo, sending_video, sending_audio, sending_file, mark_seen

Меняет что-то в MAX.

max bot chats action <chat> <action>
АргументЧто это
chatобязательный
actionобязательный

max bot people

people this bot has seen write — from the local copy on this machine, never asking MAX unless told to

max bot people show

one person — an id, @username or part of a name: the chats they wrote in (with their last message there) and the latest messages of their private chat with the bot

max bot people show <who> [options]
АргументЧто это
whoобязательный
ОпцияЧто делает
--all-botsalso read every other bot's copy on this machine that readOtherBots allows.
--bots <profiles>also read these bots' copies, comma separated — each allowed by readOtherBots.
--limit <n>how many messages from the private chat.
--refreshread the private chat with them from MAX first — one request.

max bot recipients

the chats this bot may write to; with no list, every chat — off removes the list

max bot recipients list

the chats on the list, or nothing when there is no list

max bot recipients list

max bot recipients add

allow a chat: its id, user:<id>, or the title of a chat this bot has seen

max bot recipients add <chat>
АргументЧто это
chatобязательный

max bot recipients remove

take a chat off the list

max bot recipients remove <chat>
АргументЧто это
chatобязательный

max bot recipients clear

remove the list: the bot may write to any chat again

max bot recipients clear

max bot sends

what this bot sent, edited and deleted from this machine — ids and outcomes, never text

max bot sends list

max bot sends list

max bot members

the people in a group chat or channel the bot is in

max bot members list

members of a chat, a page at a time — --marker takes the marker the last page gave

max bot members list <chat> [options]
АргументЧто это
chatобязательный
ОпцияЧто делает
--limit <n>how many, up to 100.
--marker <marker>continue from here.

max bot members add

add people to a chat by user id; the bot must be an admin that may add members

Меняет что-то в MAX.

max bot members add <chat> <users>
АргументЧто это
chatобязательный
usersобязательный

max bot members remove

remove a person from a chat

Меняет что-то в MAX.

max bot members remove <chat> <user> [options]
АргументЧто это
chatобязательный
userобязательный
ОпцияЧто делает
--blockalso block them from coming back by the chat's link.

max bot admins

the admins of a group chat or channel the bot is an admin in

max bot admins list

the admins of a chat and what each may do

max bot admins list <chat>
АргументЧто это
chatобязательный

max bot admins add

make a person an admin with the permissions named

Меняет что-то в MAX.

max bot admins add <chat> <user> [options]
АргументЧто это
chatобязательный
userобязательный
ОпцияЧто делает
--permissions <list>a comma list: read_all_messages, add_remove_members, add_admins, change_chat_info, pin_message, edit_link, write, edit, delete, can_call, view_stats.
--alias <title>the title shown beside their name.

max bot admins remove

take a person's admin rights away; they stay in the chat

Меняет что-то в MAX.

max bot admins remove <chat> <user>
АргументЧто это
chatобязательный
userобязательный

max bot comments

comments under a channel post — each command takes the post's message id (mid.…) first

max bot comments list

the comments under a post, newest last

max bot comments list <message> [options]
АргументЧто это
messageобязательный
ОпцияЧто делает
--limit <n>how many, up to 100.

max bot comments get

one comment under a post

max bot comments get <message> <comment>
АргументЧто это
messageобязательный
commentобязательный

max bot comments send

comment under a post as the bot; - reads stdin

Меняет что-то в MAX.

max bot comments send <message> <text> [options]
АргументЧто это
messageобязательный
textобязательный
ОпцияЧто делает
--format <format>how the text is marked up. Одно из: markdown, html.

max bot comments edit

replace the text of a comment the bot wrote; - reads stdin

Меняет что-то в MAX.

max bot comments edit <message> <comment> <text> [options]
АргументЧто это
messageобязательный
commentобязательный
textобязательный
ОпцияЧто делает
--format <format>how the text is marked up. Одно из: markdown, html.

max bot comments delete

delete a comment under a post

Меняет что-то в MAX.

max bot comments delete <message> <comment>
АргументЧто это
messageобязательный
commentобязательный

max bot callbacks

answers to the buttons people press under the bot's messages

max bot callbacks answer

answer a pressed button by its callback id: --notification shows the person a one-time note, --text replaces the message the button was on

Меняет что-то в MAX.

max bot callbacks answer <callback> [options]
АргументЧто это
callbackобязательный
ОпцияЧто делает
--text <text>the message's new text; - reads stdin.
--notification <text>a note only the person who pressed sees.

max bot commands

the bot's command menu — what people see after /

max bot commands list

the commands in the menu now

max bot commands list

max bot commands set

replace the whole menu: each command as name=description, e.g. start=Начать

Меняет что-то в MAX.

max bot commands set <commands>
АргументЧто это
commandsобязательный

max bot commands clear

empty the menu

Меняет что-то в MAX.

max bot commands clear

max bot uploads

files uploaded to MAX, to attach to a message

max bot uploads put

upload a file from disk and print the attachment to put in a message's attachments — messages send --file does both steps at once

Меняет что-то в MAX.

max bot uploads put <file> [options]
АргументЧто это
fileобязательный
ОпцияЧто делает
--type <type>upload as this kind instead of guessing by extension. Одно из: image, video, audio, file.

max bot webhooks

where MAX pushes this bot's updates — while one is set, the bot cannot read updates by polling

max bot webhooks list

the webhooks this bot has

max bot webhooks list

max bot webhooks set

send this bot's updates to an HTTPS URL on port 443 — a new URL does not replace an old one, so every update would arrive twice; refused while another is set, unless --add

Меняет что-то в MAX.

max bot webhooks set <url> [options]
АргументЧто это
urlобязательный
ОпцияЧто делает
--types <types>only these update types, a comma list (message_created,bot_started,…).
--secret-stdina secret MAX sends back in X-Max-Bot-Api-Secret — asked for, or read from a pipe.
--addkeep the webhooks already set and add this one beside them.

max bot webhooks delete

stop sending updates to this URL; with none left, the bot can poll again

Меняет что-то в MAX.

max bot webhooks delete <url>
АргументЧто это
urlобязательный

max bot updates

what happens in this bot's chats, as MAX reports it

max bot updates watch

print updates as they arrive and keep their messages, until Ctrl-C — refused while a webhook is set

Меняет что-то в MAX.

max bot updates watch [options]
ОпцияЧто делает
--types <types>only these, comma separated: message_created,message_edited,bot_added,….

max bot mcp

serve this bot to an agent over MCP, on stdin and stdout — claude mcp add sales-bot -- max sales bot mcp

max bot mcp [options]
ОпцияЧто делает
--allow-sendoffer the tools that write as the bot; without it the server can only read.
--confirm-sendshow the owner every write in a form from the server first.
--allow-deleteoffer the tools that delete messages and comments; it cannot be undone.
--allow-moderateoffer max_bot_chats_check and adding and removing members — the bot acts on a group's rules.

max bot mcp config

print the mcpServers entry for Claude Desktop, Cursor and others, with full paths; writes nothing

max bot mcp config [options]
ОпцияЧто делает
--allow-sendoffer the tools that write as the bot; without it the server can only read.
--confirm-sendshow the owner every write in a form from the server first.
--allow-deleteoffer the tools that delete messages and comments; it cannot be undone.
--allow-moderateoffer max_bot_chats_check and adding and removing members — the bot acts on a group's rules.

max bot api

every operation of the official Bot API, generated from its schema — docs/dev/bot-api-coverage.md

max bot api get-my-info

Get current bot info — read (GET /me)

max bot api get-my-info

max bot api edit-my-commands

Edit current bot commands — write (PATCH /me/commands)

Меняет что-то в MAX.

max bot api edit-my-commands [options]
ОпцияЧто делает
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api get-chat

Get chat — read (GET /chats/{chatId})

max bot api get-chat [options]
ОпцияЧто делает
--chat-id <value>Requested chat or channel identifier.

max bot api edit-chat

Edit chat or channel info — write (PATCH /chats/{chatId})

Меняет что-то в MAX.

max bot api edit-chat [options]
ОпцияЧто делает
--chat-id <value>Chat or channel identifier.
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api send-action

Send action — write (POST /chats/{chatId}/actions)

Меняет что-то в MAX.

max bot api send-action [options]
ОпцияЧто делает
--chat-id <value>Chat identifier.
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api get-pinned-message

Get pinned message — read (GET /chats/{chatId}/pin)

max bot api get-pinned-message [options]
ОпцияЧто делает
--chat-id <value>Chat identifier to get its pinned message.

max bot api pin-message

Pin message — write (PUT /chats/{chatId}/pin)

Меняет что-то в MAX.

max bot api pin-message [options]
ОпцияЧто делает
--chat-id <value>Chat identifier where message should be pinned.
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api unpin-message

Unpin message — write (DELETE /chats/{chatId}/pin)

Меняет что-то в MAX.

max bot api unpin-message [options]
ОпцияЧто делает
--chat-id <value>Chat identifier to remove pinned message.

max bot api get-membership

Get chat or channel membership — read (GET /chats/{chatId}/members/me)

max bot api get-membership [options]
ОпцияЧто делает
--chat-id <value>Chat or channel identifier.

max bot api leave-chat

Leave chat — destructive (DELETE /chats/{chatId}/members/me)

Меняет что-то в MAX.

max bot api leave-chat [options]
ОпцияЧто делает
--chat-id <value>Chat or channel identifier.

max bot api get-admins

Get chat or channel admins — read (GET /chats/{chatId}/members/admins)

max bot api get-admins [options]
ОпцияЧто делает
--chat-id <value>Chat or channel identifier.

max bot api post-admins

Set chat or channel admins — write (POST /chats/{chatId}/members/admins)

Меняет что-то в MAX.

max bot api post-admins [options]
ОпцияЧто делает
--chat-id <value>Chat or channel identifier.
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api delete-admins

Revoke admin rights — write (DELETE /chats/{chatId}/members/admins/{userId})

Меняет что-то в MAX.

max bot api delete-admins [options]
ОпцияЧто делает
--chat-id <value>Chat or channel identifier.
--user-id <value>User identifier.

max bot api get-members

Get members — read (GET /chats/{chatId}/members)

max bot api get-members [options]
ОпцияЧто делает
--chat-id <value>Chat or channel identifier.
--user-ids <value>Comma-separated list of users identifiers to get their membership. When this parameter is passed, both count and marker are ignored.
--marker <value>Marker.
--count <value>Count.

max bot api add-members

Add members — write (POST /chats/{chatId}/members)

Меняет что-то в MAX.

max bot api add-members [options]
ОпцияЧто делает
--chat-id <value>Chat identifier.
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api remove-member

Remove member — write (DELETE /chats/{chatId}/members)

Меняет что-то в MAX.

max bot api remove-member [options]
ОпцияЧто делает
--chat-id <value>Chat or channel identifier.
--user-id <value>User id to remove from chat or channel.
--block <value>Set to true if user should be blocked in chat.

max bot api get-subscriptions

Get subscriptions — read (GET /subscriptions)

max bot api get-subscriptions

max bot api subscribe

Subscribe — write (POST /subscriptions)

Меняет что-то в MAX.

max bot api subscribe [options]
ОпцияЧто делает
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api unsubscribe

Unsubscribe — write (DELETE /subscriptions)

Меняет что-то в MAX.

max bot api unsubscribe [options]
ОпцияЧто делает
--url <value>URL to remove from WebHook subscriptions.

max bot api get-upload-url

Get upload URL — write (POST /uploads)

Меняет что-то в MAX.

max bot api get-upload-url [options]
ОпцияЧто делает
--type <value>Uploaded file type: image, audio, video, file.

max bot api get-messages

Get messages — read (GET /messages)

max bot api get-messages [options]
ОпцияЧто делает
--chat-id <value>Chat or channel identifier to get messages in chat or channel.
--message-ids <value>Comma-separated list of message ids to get.
--from <value>Start time for requested messages - use after instead.
--to <value>End time for requested messages - use before instead.
--before <value>Messages before timestamp.
--after <value>Messages after timestamp.
--count <value>Maximum amount of messages in response.

max bot api send-message

Send message — write (POST /messages)

Меняет что-то в MAX.

max bot api send-message [options]
ОпцияЧто делает
--user-id <value>Fill this parameter if you want to send message to user.
--chat-id <value>Fill this if you send message to chat or channel.
--disable-link-preview <value>If false, server will not generate media preview for links in text.
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api edit-message

Edit message — write (PUT /messages)

Меняет что-то в MAX.

max bot api edit-message [options]
ОпцияЧто делает
--message-id <value>Editing message identifier.
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api delete-message

Delete message — destructive (DELETE /messages)

Меняет что-то в MAX.

max bot api delete-message [options]
ОпцияЧто делает
--message-id <value>Deleting message identifier.

max bot api get-message-by-id

Get message — read (GET /messages/{messageId})

max bot api get-message-by-id [options]
ОпцияЧто делает
--message-id <value>Message identifier (mid) to get single message in chat or channel.

max bot api get-comments

Get comments — read (GET /messages/{messageId}/comments)

max bot api get-comments [options]
ОпцияЧто делает
--message-id <value>Message identifier (mid) of the commented message.
--comment-ids <value>Comma-separated list of comment ids to get.
--before <value>Comments before timestamp.
--after <value>Comments after timestamp.
--count <value>Maximum amount of comments in response.

max bot api send-comment

Send comment — write (POST /messages/{messageId}/comments)

Меняет что-то в MAX.

max bot api send-comment [options]
ОпцияЧто делает
--message-id <value>Message identifier (mid) of the commented message.
--disable-link-preview <value>If false, server will not generate media preview for links in text.
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api edit-comment

Edit comment — write (PUT /messages/{messageId}/comments)

Меняет что-то в MAX.

max bot api edit-comment [options]
ОпцияЧто делает
--message-id <value>Message identifier (mid) of the commented message.
--comment-id <value>Editing comment identifier.
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api delete-comment

Delete comment — destructive (DELETE /messages/{messageId}/comments)

Меняет что-то в MAX.

max bot api delete-comment [options]
ОпцияЧто делает
--message-id <value>Message identifier (mid) of the commented message.
--comment-id <value>Deleting comment identifier.

max bot api get-comment-by-id

Get comment — read (GET /messages/{messageId}/comments/{commentId})

max bot api get-comment-by-id [options]
ОпцияЧто делает
--message-id <value>Message identifier (mid) of the commented message.
--comment-id <value>Comment identifier (mid) to get single comment in channel.

max bot api get-video-attachment-details

Get video details — read (GET /videos/{videoToken})

max bot api get-video-attachment-details [options]
ОпцияЧто делает
--video-token <value>Video attachment token.

max bot api answer-on-callback

Answer on callback — write (POST /answers)

Меняет что-то в MAX.

max bot api answer-on-callback [options]
ОпцияЧто делает
--callback-id <value>Identifies a button clicked by user. Bot receives this identifier after user pressed button as part of MessageCallbackUpdate.
--disable-link-preview <value>If true, server will not generate media preview for links in updated message text.
--body <json>the request body as JSON; - reads it from stdin.
--body-file <path>the request body from a JSON file; - is stdin.

max bot api get-updates

Get updates — write (GET /updates)

Меняет что-то в MAX.

max bot api get-updates [options]
ОпцияЧто делает
--limit <value>Maximum number of updates to be retrieved.
--poll-timeout <value>Timeout in seconds for long polling.
--marker <value>Pass null to get updates you didn't get yet.
--types <value>Comma separated list of update types your bot want to receive.

Коды возврата

Скрипт ветвится по коду, а не по тексту: текст меняется, код — нет.

КодКогда
0получилось
2validation_error
3configuration_error
4authentication_error
5permission_error
6not_found
7confirmation_required
8rate_limited
9timeout
10network_error
11provider_error
12provider_unavailable
13invalid_response
14outcome_unknown
130cancelled
1всё остальное

0 и только 0 означает, что операция выполнена. 14 — outcome_unknown — означает, что сообщение могло уйти: не отправлено и не провалено, и повторять его можно только с тем же --send-id.

On this page

Общие опцииmax sessionmax session startmax session endmax accountmax account showmax account updatemax account sessionsmax account sessions listmax account sessions endmax chatsmax chats listmax chats showmax chats eventsmax chats inspectmax chats joinmax chats mark-readmax chats leavemax chats createmax chats membersmax chats members listmax chats members addmax chats members removemax chats adminsmax chats admins addmax chats admins removemax chats updatemax chats linkmax chats link showmax chats link resetmax chats foldersmax chats folders listmax chats folders createmax chats folders updatemax chats folders deletemax chats rulesmax chats rules showmax chats rules setmax chats rules unsetmax chats checkmax contactsmax contacts listmax contacts showmax contacts syncmax contacts lookupmax contacts addmax contacts removemax contacts blockmax contacts unblockmax contacts renamemax contacts importmax messagesmax messages listmax messages searchmax messages showmax messages contextmax messages linksmax messages downloadmax messages transcribemax messages sendmax messages scheduledmax messages editmax messages deletemax messages forwardmax messages pinmax messages unpinmax storemax store statusmax store fetchmax store jobsmax store jobs listmax store jobs showmax store jobs cancelmax store exportmax store clearmax store infomax store checkmax store migratemax store reindexmax store backupmax store restoremax conversationsmax conversations buildmax conversations listmax conversations showmax conversations batchesmax conversations batches statusmax conversations batches nextmax conversations linksmax conversations links addmax conversations links clearmax modelsmax models audiomax models audio listmax models audio downloadmax pollsmax polls showmax polls votemax polls closemax polls createmax reactionsmax reactions addmax reactions removemax recipientsmax recipients listmax recipients addmax recipients removemax recipients clearmax sendsmax sends listmax inboxmax reviewmax servemax servermax server startmax server stopmax server restartmax server statusmax server logsmax server installmax server uninstallmax watchmax configmax config showmax config setmax config unsetmax doctormax doctor reportmax doctor report createmax cachemax cache clearmax runsmax runs listmax runs showmax runs pathmax skillmax skill showmax skill installmax commandsmax upgrademax completemax mcpmax mcp configmax botmax bot authmax bot auth setmax bot auth showmax bot auth removemax bot memax bot listmax bot messagesmax bot messages listmax bot messages getmax bot messages searchmax bot messages betweenmax bot messages sendmax bot messages editmax bot messages deletemax bot chatsmax bot chats checkmax bot chats rulesmax bot chats rules showmax bot chats rules setmax bot chats rules unsetmax bot chats listmax bot chats getmax bot chats pinmax bot chats unpinmax bot chats leavemax bot chats actionmax bot peoplemax bot people showmax bot recipientsmax bot recipients listmax bot recipients addmax bot recipients removemax bot recipients clearmax bot sendsmax bot sends listmax bot membersmax bot members listmax bot members addmax bot members removemax bot adminsmax bot admins listmax bot admins addmax bot admins removemax bot commentsmax bot comments listmax bot comments getmax bot comments sendmax bot comments editmax bot comments deletemax bot callbacksmax bot callbacks answermax bot commandsmax bot commands listmax bot commands setmax bot commands clearmax bot uploadsmax bot uploads putmax bot webhooksmax bot webhooks listmax bot webhooks setmax bot webhooks deletemax bot updatesmax bot updates watchmax bot mcpmax bot mcp configmax bot apimax bot api get-my-infomax bot api edit-my-commandsmax bot api get-chatmax bot api edit-chatmax bot api send-actionmax bot api get-pinned-messagemax bot api pin-messagemax bot api unpin-messagemax bot api get-membershipmax bot api leave-chatmax bot api get-adminsmax bot api post-adminsmax bot api delete-adminsmax bot api get-membersmax bot api add-membersmax bot api remove-membermax bot api get-subscriptionsmax bot api subscribemax bot api unsubscribemax bot api get-upload-urlmax bot api get-messagesmax bot api send-messagemax bot api edit-messagemax bot api delete-messagemax bot api get-message-by-idmax bot api get-commentsmax bot api send-commentmax bot api edit-commentmax bot api delete-commentmax bot api get-comment-by-idmax bot api get-video-attachment-detailsmax bot api answer-on-callbackmax bot api get-updatesКоды возврата