telegram-bot-ruby 0.3.7 → 0.3.8

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
2
  SHA1:
3
- metadata.gz: 4d092730e8bbac583317d5fb8421a69b293492d0
4
- data.tar.gz: 5ad5a713a0e4a97401b9cae4f955485efb2bd23e
3
+ metadata.gz: f9e3b1ef6a2b19a7b71d5570e3d3bdd4bccbb5a6
4
+ data.tar.gz: fd6430c60d5f783736404a3717f3cfe3446bfb6c
5
5
  SHA512:
6
- metadata.gz: 3d32d2c08279d58b77c9d385f06dd6379b2620bde999767e985ab664f6fa83982606ed4a8e0ef102ecc16f3e0f1b24ff32058bdadc76ef49fc292314cb15c46c
7
- data.tar.gz: 456a5432ba72bdd65609c32570876cd98a145360285cce63547a7526f58f3d9e182c56473222d890f23a1d3a2167cbb4e7c9a993c1ba2225ed1250eb7dd01ba7
6
+ metadata.gz: 04d0728a3d0c5237ee25037e04f6985b4a088659736119715d0a9affd0fce5fc725216c7acd7b2e94a7a41e92f5b33791e0b662a4aea7e6643c2b91be3873575
7
+ data.tar.gz: 50f259907df570525321de870f10ee81b66b4dd8ff95c8c0dc9dd14aa2cd262c78a0c6f717247a9c480cb2573f368c80624c2ff8fdc84f73b7e622ce24115628
@@ -6,7 +6,7 @@ module Telegram
6
6
  ENDPOINTS = %w(
7
7
  getMe sendMessage forwardMessage sendPhoto sendAudio sendDocument
8
8
  sendSticker sendVideo sendVoice sendLocation sendChatAction
9
- getUserProfilePhotos getUpdates setWebhook
9
+ getUserProfilePhotos getUpdates setWebhook getFile
10
10
  ).freeze
11
11
  REPLY_MARKUP_TYPES = [
12
12
  Telegram::Bot::Types::ReplyKeyboardMarkup,
@@ -14,3 +14,4 @@ require 'telegram/bot/types/update'
14
14
  require 'telegram/bot/types/reply_keyboard_markup'
15
15
  require 'telegram/bot/types/reply_keyboard_hide'
16
16
  require 'telegram/bot/types/force_reply'
17
+ require 'telegram/bot/types/file'
@@ -0,0 +1,11 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class File < Base
5
+ attribute :file_id, String
6
+ attribute :file_size, Integer
7
+ attribute :file_path, String
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.3.7'
3
+ VERSION = '0.3.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telegram-bot-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tipugin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-17 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty
@@ -138,6 +138,7 @@ files:
138
138
  - lib/telegram/bot/types/base.rb
139
139
  - lib/telegram/bot/types/contact.rb
140
140
  - lib/telegram/bot/types/document.rb
141
+ - lib/telegram/bot/types/file.rb
141
142
  - lib/telegram/bot/types/force_reply.rb
142
143
  - lib/telegram/bot/types/group_chat.rb
143
144
  - lib/telegram/bot/types/location.rb