Method: Kogno::Telegram::Notification#html
- Defined in:
- lib/core/lib/telegram/notification.rb
#html(code, reply_markup = {}, extra_params = {}) ⇒ Object
81 82 83 84 85 86 87 88 89 |
# File 'lib/core/lib/telegram/notification.rb', line 81 def html(code, reply_markup = {} ,extra_params={}) extra_params[:disable_web_page_preview] = !extra_params[:preview_url] unless extra_params[:preview_url].nil? extra_params = {disable_web_page_preview: true}.merge(extra_params) params = { text: code, parse_mode: "HTML" }.merge(self.class.format_to_reply_markup(reply_markup)).merge(extra_params) self.(params, :message) end |