Airgram

Guides
/
/
Methods

api.getMessagePublicForwards()

Returns forwarded copies of a channel message to different public channels. For optimal performance, the number of returned messages is chosen by TDLib

Parameters GetMessagePublicForwardsParams:

NameTypeDescription
chatIdnumber Chat identifier of the message
messageIdnumber Message identifier
offsetstring Offset of the first entry to return as received from the previous request; use empty string to get first chunk of results
limitnumber The maximum number of messages to be returned; must be positive and can't be greater than 100. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
Returns ApiResponse interface:
interface ApiResponse {
  _: 'getMessagePublicForwards' | 'error'
  airgram: Airgram
  request: {
    method: 'getMessagePublicForwards'
    params: GetMessagePublicForwardsParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}