Airgram

Guides
/
/
Methods

api.editMessageSchedulingState()

Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed

Parameters EditMessageSchedulingStateParams:

NameTypeDescription
chatIdnumber The chat the message belongs to
messageIdnumber Identifier of the message
schedulingState The new message scheduling state; pass null to send the message immediately
Returns ApiResponse interface:
interface ApiResponse {
  _: 'editMessageSchedulingState' | 'error'
  airgram: Airgram
  request: {
    method: 'editMessageSchedulingState'
    params: EditMessageSchedulingStateParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}