telegram api method · layer 229 · #d3e03124

messages.toggleTodoCompleted

usable by users

Mark one or more items of a todo list » as completed or not completed.

definition

messages.toggleTodoCompleted#d3e03124 peer:InputPeer msg_id:int completed:Vector<int> incompleted:Vector<int> = Updates;

parameters

nametypedescription
peerInputPeerPeer where the todo list was posted.
msg_idintID of the message with the todo list.
completedVector<int>Items to mark as completed.
incompletedVector<int>Items to mark as not completed.

returns

Updates

errors (3)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400PEER_ID_INVALIDThe provided peer id is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 205–229

idlayers
#d3e03124205–229