telegram-bot-ruby 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/telegram/bot/api.rb +3 -1
- data/lib/telegram/bot/client.rb +1 -1
- data/lib/telegram/bot/version.rb +1 -1
- data/lib/telegram/bot.rb +1 -0
- data/telegram-bot-ruby.gemspec +2 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfcdb5381255185948b6a8ce3721c2b7db3af41c75efdb94f6dc23bdbf84ee03
|
4
|
+
data.tar.gz: 5d1091fcb432c117832d906cb841c973bc402e5282485d44eae419dfee99f2d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44face7b6f9889dc3273ebd92608f9776eed7da5678cf03ee6b1f1b9fef06138ff0be373b67779e56c81732dfd0cb504763d43facfbebfc9efe352d3a0e35787
|
7
|
+
data.tar.gz: 36056a42058dbf01b1796291998cf5a920f571ad589e49d4ff3b8312e16b1b4b28cb0c992138d42d29d752ecb9e247528bc2c5c8bccd7881c75b7b03c18855eb
|
data/CHANGELOG.md
CHANGED
data/lib/telegram/bot/api.rb
CHANGED
@@ -24,7 +24,9 @@ module Telegram
|
|
24
24
|
deleteMyCommands setStickerSetThumb logOut close copyMessage
|
25
25
|
createChatInviteLink editChatInviteLink revokeChatInviteLink
|
26
26
|
approveChatJoinRequest declineChatJoinRequest banChatSenderChat
|
27
|
-
unbanChatSenderChat
|
27
|
+
unbanChatSenderChat answerWebAppQuery setChatMenuButton
|
28
|
+
getChatMenuButton setMyDefaultAdministratorRights
|
29
|
+
getMyDefaultAdministratorRights
|
28
30
|
].freeze
|
29
31
|
|
30
32
|
attr_reader :token, :url
|
data/lib/telegram/bot/client.rb
CHANGED
@@ -60,7 +60,7 @@ module Telegram
|
|
60
60
|
def log_incoming_message(message)
|
61
61
|
uid = message.respond_to?(:from) && message.from ? message.from.id : nil
|
62
62
|
logger.info(
|
63
|
-
format('Incoming message: text="%<
|
63
|
+
format('Incoming message: text="%<message>s" uid=%<uid>s', message: message, uid: uid)
|
64
64
|
)
|
65
65
|
end
|
66
66
|
end
|
data/lib/telegram/bot/version.rb
CHANGED
data/lib/telegram/bot.rb
CHANGED
data/telegram-bot-ruby.gemspec
CHANGED
@@ -20,7 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
22
|
spec.add_dependency 'dry-inflector'
|
23
|
-
spec.add_dependency 'faraday', '~>
|
23
|
+
spec.add_dependency 'faraday', '~> 2.0'
|
24
|
+
spec.add_dependency 'faraday-multipart', '~> 1.0'
|
24
25
|
spec.add_dependency 'virtus', '~> 2.0'
|
25
26
|
|
26
27
|
spec.add_development_dependency 'pry'
|
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.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tipugin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-inflector
|
@@ -26,6 +26,20 @@ dependencies:
|
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday-multipart
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
@@ -306,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
320
|
- !ruby/object:Gem::Version
|
307
321
|
version: '0'
|
308
322
|
requirements: []
|
309
|
-
rubygems_version: 3.3.
|
323
|
+
rubygems_version: 3.3.7
|
310
324
|
signing_key:
|
311
325
|
specification_version: 4
|
312
326
|
summary: Ruby wrapper for Telegram's Bot API
|