telegram api method · layer 229 · #5f150144

stats.getMessagePublicForwards

usable by users

Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
Will return a list of messages with peer_id equal to the public channel to which this message was forwarded.

definition

stats.getMessagePublicForwards#5f150144 channel:InputChannel msg_id:int offset:string limit:int = stats.PublicForwards;

parameters

nametypedescription
channelInputChannelSource channel
msg_idintSource message ID
offsetstringOffset for pagination, empty string on first call, then use the next_offset field of the returned constructor (if present, otherwise no more results are available).
limitintMaximum number of results to return, see pagination

returns

stats.PublicForwards

errors (6)

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_INVALIDThe provided channel is invalid.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400MESSAGE_ID_INVALIDThe provided message id is invalid.
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 119–229 · constructor id changed 1×

idlayers
#5630281b119–167
#5f150144168–229