TelegramBot.sendChatAction

Send chat action

  1. bool sendChatAction(T chat_id, ChatAction action)
    struct TelegramBot
    @trusted
    bool
    sendChatAction
    (
    T
    )
  2. bool sendChatAction(SendChatActionMethod m)

Parameters

chat_id T

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

action ChatAction

Type of action, (typing, upload_photo, record_video, etc)

Return Value

Type: bool

true on success

Throws

TelegramBotException on errors

See Also

Meta