telegram-bot-ruby 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/examples/bot.rb +2 -2
- data/lib/telegram/bot/client.rb +2 -0
- 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: b0f238cefd205500522307dccb130ef0993bfd8a
|
4
|
+
data.tar.gz: 115bc4c3bb59e94f67842810ab95ed1f7d21aae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7419c4a6c6ca6fec3c8132f7734307ccf10640ffb2d6e58b3e019ad11577b29485c5a02a3b9cf6ed603daae39fd0fbccb573e7fcf5ec70c53800639041c11032
|
7
|
+
data.tar.gz: 66fdc42963a0e8847b187eaaab4307383cf9b378ae470d2bb59dc8c403b1adbda21a4c7229e668212b8cd9d890d2a07d27265514429808a8bb3a6b8f4e9ffd25
|
data/README.md
CHANGED
@@ -38,9 +38,9 @@ Telegram::Bot::Client.run(token) do |bot|
|
|
38
38
|
bot.listen do |message|
|
39
39
|
case message.text
|
40
40
|
when '/start'
|
41
|
-
bot.api.sendMessage(chat_id: message.chat.id, text: "Hello, #{message.from.
|
41
|
+
bot.api.sendMessage(chat_id: message.chat.id, text: "Hello, #{message.from.first_name}")
|
42
42
|
when '/stop'
|
43
|
-
bot.api.sendMessage(chat_id: message.chat.id, text: "Bye, #{message.from.
|
43
|
+
bot.api.sendMessage(chat_id: message.chat.id, text: "Bye, #{message.from.first_name}")
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
data/examples/bot.rb
CHANGED
@@ -7,9 +7,9 @@ Telegram::Bot::Client.run(token) do |bot|
|
|
7
7
|
bot.listen do |message|
|
8
8
|
case message.text
|
9
9
|
when '/start'
|
10
|
-
bot.api.sendMessage(chat_id: message.chat.id, text: "Hello, #{message.from.
|
10
|
+
bot.api.sendMessage(chat_id: message.chat.id, text: "Hello, #{message.from.first_name}!")
|
11
11
|
when '/end'
|
12
|
-
bot.api.sendMessage(chat_id: message.chat.id, text: "Bye, #{message.from.
|
12
|
+
bot.api.sendMessage(chat_id: message.chat.id, text: "Bye, #{message.from.first_name}!")
|
13
13
|
else
|
14
14
|
bot.api.sendMessage(chat_id: message.chat.id, text: "I don't understand you :(")
|
15
15
|
end
|
data/lib/telegram/bot/client.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.6
|
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-07-
|
11
|
+
date: 2015-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httmultiparty
|