Skip to content

sendChatAction

Sahri Riza Umami edited this page Jun 12, 2018 · 5 revisions

Sends a notification about user activity in a chat.

sendChatAction(chat_id, action, progress)
Field Type Description
chat_id int53 Chat identifier
action ChatAction The action description: Typing, RecordingVideo, UploadingVideo, RecordingVoiceNote, UploadingVoiceNote, UploadingPhoto, UploadingDocument, ChoosingLocation, ChoosingContact, StartPlayingGame, RecordingVideoNote, UploadingVideoNote, Cancel

Example

  • Send a typing notification into chat 1234567890.

    sendChatAction(1234567890, 'Typing')

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally