lib/bobot/events/common.rb in bobot-3.7.2 vs lib/bobot/events/common.rb in bobot-3.7.3
- old
+ new
@@ -47,9 +47,13 @@
def reply_with_text(text:)
page.send_text(text: text, to: sender["id"])
end
+ def reply_with_youtube_video(url:)
+ page.send_youtube_video(url: url, to: sender["id"])
+ end
+
def reply_with_attachment(url:, type:)
page.send_attachment(url: url, type: type, to: sender["id"])
end
def reply_with_image(url:)