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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/telegram/bot/api.rb +3 -1
- data/lib/telegram/bot/types.rb +1 -0
- data/lib/telegram/bot/types/chat.rb +3 -0
- data/lib/telegram/bot/types/chat_member.rb +14 -0
- data/lib/telegram/bot/types/chat_photo.rb +10 -0
- data/lib/telegram/bot/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 802491c677ae1e2a83a5b63a4bae63d575d6a035
|
4
|
+
data.tar.gz: 1a90c7021d2fe0db8509250ea4e211022316775a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/telegram/bot/api.rb
CHANGED
@@ -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
|
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
|
data/lib/telegram/bot/types.rb
CHANGED
@@ -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'
|
@@ -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
|
data/lib/telegram/bot/version.rb
CHANGED
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.
|
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-
|
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
|