telegram api method · layer 229 · #e40ca104

messages.getCommonChats

usable by users

Get chats in common with a user

definition

messages.getCommonChats#e40ca104 user_id:InputUser max_id:long limit:int = messages.Chats;

parameters

nametypedescription
user_idInputUserUser ID
max_idlongMaximum ID of chat to return (see pagination)
limitintMaximum number of results to return, see pagination

returns

messages.Chats

errors (5)

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.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400MSG_ID_INVALIDInvalid message ID provided.
400USER_ID_INVALIDThe provided user 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 62–229 · constructor id changed 1×

idlayers
#0d0a48c462–132
#e40ca104133–229