Method: Kogno::Telegram::Notification#markdown
- Defined in:
- lib/core/lib/telegram/notification.rb
#markdown(syntax, reply_markup = {}, extra_params = {}) ⇒ Object
91 92 93 94 95 96 97 98 99 |
# File 'lib/core/lib/telegram/notification.rb', line 91 def markdown(syntax, 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: syntax, parse_mode: "MarkdownV2" }.merge(self.class.format_to_reply_markup(reply_markup)).merge(extra_params) self.(params, :message) end |