telegram-bot-ruby 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/telegram/bot/api.rb +2 -1
- data/lib/telegram/bot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0be0d9f9b09686f972ed3bbbd2647e93dd757a4
|
4
|
+
data.tar.gz: 0b0508dd065cb45c221d0b77354e8881a93c876b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b36eac94ac838a19e51e2735a49274b994e0fc1b998050f9009ad3cffd43809cadf4304529d6c0893a905e58cefa532d0ee6d85de79dc3c89c30c7259c85c4cd
|
7
|
+
data.tar.gz: 0d4298c22bf1bdf9e58ae0af41b2573334dc8893e0b708dd2c1c64906b41c5faadce5f7a9d89f688ed90598259a9a87d9d1172441e5fc80f14d86203c8612a91
|
data/README.md
CHANGED
@@ -125,6 +125,10 @@ end
|
|
125
125
|
- Telegram's user id (required)
|
126
126
|
- hash of additional properties (optional)
|
127
127
|
|
128
|
+
## Connection pool size
|
129
|
+
|
130
|
+
Sometimes you need to do some heavy work in another thread and send response from where.
|
131
|
+
|
128
132
|
## Contributing
|
129
133
|
|
130
134
|
1. Fork it
|
data/lib/telegram/bot/api.rb
CHANGED
@@ -13,11 +13,12 @@ module Telegram
|
|
13
13
|
Telegram::Bot::Types::ReplyKeyboardHide,
|
14
14
|
Telegram::Bot::Types::ForceReply
|
15
15
|
].freeze
|
16
|
+
POOL_SIZE = ENV.fetch('TELEGRAM_BOT_POOL_SIZE', 1).to_i.freeze
|
16
17
|
|
17
18
|
attr_reader :token
|
18
19
|
|
19
20
|
base_uri 'https://api.telegram.org'
|
20
|
-
persistent_connection_adapter
|
21
|
+
persistent_connection_adapter pool_size: POOL_SIZE
|
21
22
|
|
22
23
|
def initialize(token)
|
23
24
|
@token = token
|
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.3.
|
4
|
+
version: 0.3.4
|
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-
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httmultiparty
|