require 'telegram_bot/url' require 'telegram_bot/reply/request' module Telegram module Reply def send_photo(chat_id: @chat.id, photo:, **options) url = Telegram::URL::SEND_PHOTO params = { chat_id: chat_id, photo: photo, caption: options[:caption].presence, parse_mode: options[:parse_mode].presence, disable_notification: options[:disable_notification].presence, reply_to_message_id: options[:reply_to_message_id].presence, reply_markup: options[:reply_markup].presence } Telegram::Reply::SEND(url: url, params: params) end end end