telebot 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e28da70cafd397b9d2d05fe37a11a974d4f0c46e
4
- data.tar.gz: d30763a3ee77fb04b54033b1d12f5e0760aa458a
2
+ SHA256:
3
+ metadata.gz: d4c3126c9be40f8985388da8c92b1f4368bef5874ad87a216ddca8dbe8d6cc28
4
+ data.tar.gz: e740be860cbae1211a4a20d9d0604975aa367218609d4e98a014693aa31a6598
5
5
  SHA512:
6
- metadata.gz: 7f7f22ac5c199fbd418ea03dd039bac63b535e3175a6b16dee521532e78e7284fabad584374d42d1f3c8f4e6f6b30fac71d0fed07536df5c10a35075538fcfdc
7
- data.tar.gz: 2bc252b6e887731afc2ae91ee477d2f1a8d8537a9cc33c5349be40132e438a34c81cc7738bff6c76374e8adf4e8f438f4f688eae2750792d96c5900309580c4c
6
+ metadata.gz: f80bd5e7255ae6ff0bf4e5bfebd17e9a02ec6d362a9f5f1fc8bdc88b76b70b1c5d9ffed41637c1fb94e8832e528d7ebac7cc559603204ac21d88925ff099e253
7
+ data.tar.gz: 2393d1e88a1ae9562e929ab3cb7f8360d730606b598c1e13ac2a5a217672f4bee1ed16b92f90d1548b4c91bcfa833f10e16d9194784fb1dff70332e80c617a90
@@ -59,15 +59,17 @@ module Telebot
59
59
  # @param disable_web_page_preview [Boolean] Disables link previews for links in this message
60
60
  # @param reply_to_message_id [Integer] If the message is a reply, ID of the original message
61
61
  # @param reply_markup [ReplyKeyboardMarkup, ReplyKeyboardHide, ForceReply] Additional interface options
62
+ # @param parse_mode [String] "Markdown" or "HTML", Optional
62
63
  #
63
64
  # @return [Telebot::Message]
64
- def send_message(chat_id:, text:, disable_web_page_preview: false, reply_to_message_id: nil, reply_markup: nil)
65
+ def send_message(chat_id:, text:, disable_web_page_preview: false, reply_to_message_id: nil, reply_markup: nil, parse_mode: nil)
65
66
  result = call(:sendMessage,
66
67
  chat_id: chat_id,
67
68
  text: text,
68
69
  disable_web_page_preview: disable_web_page_preview,
69
70
  reply_to_message_id: reply_to_message_id,
70
- reply_markup: reply_markup
71
+ reply_markup: reply_markup,
72
+ parse_mode: parse_mode
71
73
  )
72
74
  Message.new(result)
73
75
  end
@@ -34,6 +34,9 @@ module Telebot
34
34
  # Optional. For text messages, the actual UTF-8 text of the message
35
35
  attribute :text, String
36
36
 
37
+ # Optional. For text messages, parse_mode: "Markdown" or "HTML"
38
+ attribute :parse_mode, String
39
+
37
40
  # Optional. Message is an audio file, information about the file
38
41
  attribute :audio, Audio
39
42
 
@@ -1,3 +1,3 @@
1
1
  module Telebot
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telebot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Potapov Sergey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-27 00:00:00.000000000 Z
11
+ date: 2018-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.4.5
144
+ rubygems_version: 2.7.6
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Ruby client for Telegram bot API