Method: Telegrammer::Bot#send_photo
- Defined in:
- lib/telegrammer/bot.rb
#send_photo(params) ⇒ Telegrammer::DataTypes::Message
Sends a photo to a user or group chat.
197 198 199 200 201 202 203 204 |
# File 'lib/telegrammer/bot.rb', line 197 def send_photo(params) extra_params_validation = { photo: { required: true, class: [File, String] }, caption: { required: false, class: [String] } } send_something(:photo, params, extra_params_validation) end |