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
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | The chat the message belongs to |
messageId | number | 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>
}