telegram-bot-ruby 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/LICENSE +14 -0
- data/lib/telegram/bot/api.rb +8 -6
- data/lib/telegram/bot/types/message.rb +1 -0
- data/lib/telegram/bot/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ced73b801560e523612700abc57f755767dd479
|
|
4
|
+
data.tar.gz: 752d5445cd4ccc9ff113f7c68199c693b62ed34f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b0507af86cf3aae35ea245a6e1dd0205f478873b3c70a6daa1a9c6d6b6a86cbb8be7d90f82ef28f4ec1280dcbfd3711d9be8fdb54ac6e1ae2d52ab9a6e20ec8
|
|
7
|
+
data.tar.gz: 0cd57e925551dab1e9c834d2ce7da548afe8ee9488705c5e5dd6e2c0171252767012084d15ab7aef2045f02b663bd63292f11a7be0b609f97e8db54144100166
|
data/CHANGELOG.md
CHANGED
data/LICENSE
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
2
|
+
Version 2, December 2004
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
|
5
|
+
|
|
6
|
+
Everyone is permitted to copy and distribute verbatim or modified
|
|
7
|
+
copies of this license document, and changing it is allowed as long
|
|
8
|
+
as the name is changed.
|
|
9
|
+
|
|
10
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
11
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
12
|
+
|
|
13
|
+
0. You just DO WHAT THE FUCK YOU WANT TO.
|
|
14
|
+
|
data/lib/telegram/bot/api.rb
CHANGED
|
@@ -4,16 +4,18 @@ module Telegram
|
|
|
4
4
|
ENDPOINTS = %w(
|
|
5
5
|
getUpdates setWebhook deleteWebhook getWebhookInfo getMe sendMessage
|
|
6
6
|
forwardMessage sendPhoto sendAudio sendDocument sendVideo sendVoice
|
|
7
|
-
sendVideoNote sendLocation
|
|
7
|
+
sendVideoNote sendLocation editMessageLiveLocation
|
|
8
|
+
stopMessageLiveLocation sendVenue sendContact sendChatAction
|
|
8
9
|
getUserProfilePhotos getFile kickChatMember unbanChatMember
|
|
9
10
|
restrictChatMember promoteChatMember leaveChat getChat
|
|
10
11
|
getChatAdministrators exportChatInviteLink setChatPhoto deleteChatPhoto
|
|
11
12
|
setChatTitle setChatDescription pinChatMessage unpinChatMessage
|
|
12
|
-
getChatMembersCount getChatMember
|
|
13
|
-
|
|
14
|
-
sendSticker getStickerSet
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
getChatMembersCount getChatMember setChatStickerSet deleteChatStickerSet
|
|
14
|
+
answerCallbackQuery editMessageText editMessageCaption
|
|
15
|
+
editMessageReplyMarkup deleteMessage sendSticker getStickerSet
|
|
16
|
+
uploadStickerFile createNewStickerSet addStickerToSet
|
|
17
|
+
setStickerPositionInSet deleteStickerFromSet answerInlineQuery
|
|
18
|
+
sendInvoice answerShippingQuery answerPreCheckoutQuery
|
|
17
19
|
sendGame setGameScore getGameHighScores
|
|
18
20
|
).freeze
|
|
19
21
|
REPLY_MARKUP_TYPES = [
|
|
@@ -16,6 +16,7 @@ module Telegram
|
|
|
16
16
|
attribute :author_signature, String
|
|
17
17
|
attribute :text, String
|
|
18
18
|
attribute :entities, Array[MessageEntity]
|
|
19
|
+
attribute :caption_entities, Array[MessageEntity]
|
|
19
20
|
attribute :audio, Audio
|
|
20
21
|
attribute :document, Document
|
|
21
22
|
attribute :game, Game
|
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.5
|
|
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-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -150,6 +150,7 @@ files:
|
|
|
150
150
|
- ".travis.yml"
|
|
151
151
|
- CHANGELOG.md
|
|
152
152
|
- Gemfile
|
|
153
|
+
- LICENSE
|
|
153
154
|
- README.md
|
|
154
155
|
- Rakefile
|
|
155
156
|
- bin/console
|
|
@@ -254,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
254
255
|
version: '0'
|
|
255
256
|
requirements: []
|
|
256
257
|
rubyforge_project:
|
|
257
|
-
rubygems_version: 2.6.
|
|
258
|
+
rubygems_version: 2.6.13
|
|
258
259
|
signing_key:
|
|
259
260
|
specification_version: 4
|
|
260
261
|
summary: Ruby wrapper for Telegram's Bot API
|