Airgram

Guides
/
/
Methods

api.sendChatAction()

Sends a notification about user activity in a chat

Parameters SendChatActionParams:

NameTypeDescription
chatIdnumber Chat identifier
messageThreadIdnumber If not 0, a message thread identifier in which the action was performed
action The action description; pass null to cancel the currently active action
Returns ApiResponse interface:
interface ApiResponse {
  _: 'sendChatAction' | 'error'
  airgram: Airgram
  request: {
    method: 'sendChatAction'
    params: SendChatActionParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}