telegram-bot-ruby 0.8.1 → 0.8.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
2
  SHA1:
3
- metadata.gz: d4246e152988feebc210c2cefb9bce239371bee3
4
- data.tar.gz: b2fde4cea5d214b5d99bb2f29c935079d786a070
3
+ metadata.gz: 802491c677ae1e2a83a5b63a4bae63d575d6a035
4
+ data.tar.gz: 1a90c7021d2fe0db8509250ea4e211022316775a
5
5
  SHA512:
6
- metadata.gz: 8e2ad1183445a89bb9a84c918ed0f9add51e8be4a37b4311b314774bfb06a5418b2e7f73cc165f2a53a658d7aae283169cb4d7dec28dd284413212d46ca21187
7
- data.tar.gz: ed829a2cb0e5146e2b73290ae7c6f825bd2408803e5cccb2957434a1f7e62254ea6c34d4324cf0cebe99afba9278700b4d4e467c31fcbba8f0309873ac7d1a9f
6
+ metadata.gz: 6be308d1dcda39f51981f885292d66a7f3cbf953620c932f490f42c014baa6aea476a00a202fe8fa9ca91a45ccb7afa79961f1615a092a00d02cb08aba2c4e8c
7
+ data.tar.gz: 981fa178e77adc253ee3c5dbe0cadc430f5413dd563aa2c49e4e5ed50567840785edc6c7aa3577c9b44d4849e55279cd2cdc6f5947d5c2ba43a9acf7108262ed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.2
4
+
5
+ - Implement [Bot API 3.1](https://core.telegram.org/bots/api#june-30-2017) (thx [@ivanovaleksey](https://github.com/ivanovaleksey))
6
+
3
7
  ## 0.8.1
4
8
 
5
9
  - Add [missing methods](https://github.com/atipugin/telegram-bot-ruby/pull/127) from earlier versions earlier
@@ -6,7 +6,9 @@ module Telegram
6
6
  forwardMessage sendPhoto sendAudio sendDocument sendSticker sendVideo
7
7
  sendVoice sendVideoNote sendLocation sendVenue sendContact
8
8
  sendChatAction getUserProfilePhotos getFile kickChatMember
9
- unbanChatMember leaveChat getChat getChatAdministrators
9
+ unbanChatMember restrictChatMember promoteChatMember leaveChat getChat
10
+ getChatAdministrators exportChatInviteLink setChatPhoto deleteChatPhoto
11
+ setChatTitle setChatDescription pinChatMessage unpinChatMessage
10
12
  getChatMembersCount getChatMember answerCallbackQuery editMessageText
11
13
  editMessageCaption editMessageReplyMarkup deleteMessage
12
14
  answerInlineQuery sendInvoice answerShippingQuery answerPreCheckoutQuery
@@ -9,6 +9,7 @@ require 'telegram/bot/types/voice'
9
9
  require 'telegram/bot/types/video_note'
10
10
  require 'telegram/bot/types/contact'
11
11
  require 'telegram/bot/types/location'
12
+ require 'telegram/bot/types/chat_photo'
12
13
  require 'telegram/bot/types/chat'
13
14
  require 'telegram/bot/types/message_entity'
14
15
  require 'telegram/bot/types/venue'
@@ -9,6 +9,9 @@ module Telegram
9
9
  attribute :first_name, String
10
10
  attribute :last_name, String
11
11
  attribute :all_members_are_administrators, Boolean
12
+ attribute :photo, ChatPhoto
13
+ attribute :description, String
14
+ attribute :invite_link, String
12
15
  end
13
16
  end
14
17
  end
@@ -4,6 +4,20 @@ module Telegram
4
4
  class ChatMember < Base
5
5
  attribute :user, User
6
6
  attribute :status, String
7
+ attribute :until_date, Integer
8
+ attribute :can_be_edited, Boolean
9
+ attribute :can_change_info, Boolean
10
+ attribute :can_post_messages, Boolean
11
+ attribute :can_edit_messages, Boolean
12
+ attribute :can_delete_messages, Boolean
13
+ attribute :can_invite_users, Boolean
14
+ attribute :can_restrict_members, Boolean
15
+ attribute :can_pin_messages, Boolean
16
+ attribute :can_promote_members, Boolean
17
+ attribute :can_send_messages, Boolean
18
+ attribute :can_send_media_messages, Boolean
19
+ attribute :can_send_other_messages, Boolean
20
+ attribute :can_add_web_page_previews, Boolean
7
21
  end
8
22
  end
9
23
  end
@@ -0,0 +1,10 @@
1
+ module Telegram
2
+ module Bot
3
+ module Types
4
+ class ChatPhoto < Base
5
+ attribute :small_file_id, String
6
+ attribute :big_file_id, String
7
+ end
8
+ end
9
+ end
10
+ end
@@ -1,5 +1,5 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.8.1'.freeze
3
+ VERSION = '0.8.2'.freeze
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.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tipugin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-31 00:00:00.000000000 Z
11
+ date: 2017-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -159,6 +159,7 @@ files:
159
159
  - lib/telegram/bot/types/callback_query.rb
160
160
  - lib/telegram/bot/types/chat.rb
161
161
  - lib/telegram/bot/types/chat_member.rb
162
+ - lib/telegram/bot/types/chat_photo.rb
162
163
  - lib/telegram/bot/types/chosen_inline_result.rb
163
164
  - lib/telegram/bot/types/contact.rb
164
165
  - lib/telegram/bot/types/document.rb