Method: Telegrammer::Bot#send_chat_action
- Defined in:
- lib/telegrammer/bot.rb
#send_chat_action(params) ⇒ Telegrammer::ApiResponse
Sends a status action to a user or group chat.
Used when you need to tell the user that something is happening on the bot’s side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status).
396 397 398 399 400 401 402 403 |
# File 'lib/telegrammer/bot.rb', line 396 def send_chat_action(params) params_validation = { chat_id: { required: true, class: [Fixnum, String] }, action: { required: true, class: [String] } } api_request('sendChatAction', params, params_validation) end |