telegramAPI 1.0.2 → 1.0.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/telegramAPI.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5c3d6405695de43b4a6cc0fb72e078e66f7cdaa
4
- data.tar.gz: 805dd17b9589c436697b4e5cf5b280f1d7177303
3
+ metadata.gz: b60090dfa917ebb9b00253311ec67890c1422d2b
4
+ data.tar.gz: 131b6cccc069d472ef60e8e19b367882ce018c5d
5
5
  SHA512:
6
- metadata.gz: 5629e1b32be2e2fcb7754d17a9004cede6e252430404377b39118c41e1227a2fbddcf96ff2c25e9bfbdaa61f4ef7dbbb4d7f3d36b0d4499455dbcbd24bf66ae0
7
- data.tar.gz: 55c7983b98d4346e219258b325a2a66243669210c42af1ecfd876354270778ace82f57048e55ba93d48c4755697139f62db11243cd69fdb816d9f6b2dd89c888
6
+ metadata.gz: 58e0a430ec19b2e954fc7ab1c78cf20e07abcee158ee5288b2d014290fc2fbe555be88ccc1893c9fc7bd8b5e29510076ef6fd2cdd790fbb5aa622234eb28bc48
7
+ data.tar.gz: cc06ff4ca552817285935ec29915d7ebef803befac675b05723bd9e64f99b9630b26085a9f625371236d85d1f5690891c8f12ac0bc0841d590e1bd39c1106797
data/README.md CHANGED
@@ -35,7 +35,7 @@ puts "But you can call me @#{bot.username}"
35
35
 
36
36
  ## Documentation
37
37
 
38
- The complete documentation can be found at [www.rubydoc.info](http://www.rubydoc.info/gems/telegramAPI/)
38
+ Here you can find the complete [documentation](https://cdn.rawgit.com/bennesp/telegramAPI/master/doc/TelegramAPI.html)
39
39
 
40
40
 
41
41
  ## Examples
@@ -47,7 +47,7 @@ token = "******"
47
47
  api = TelegramAPI.new token
48
48
  while true do
49
49
  # Get last messages if there are, or wait 180 seconds for new messages
50
- u=api.getUpdates {timeout=>180}
50
+ u=api.getUpdates {"timeout"=>180}
51
51
  u.each do |m|
52
52
  api.sendMessage(m.message.chat.id, m.message.text)
53
53
  end
data/lib/telegramAPI.rb CHANGED
@@ -3,7 +3,7 @@ require 'json'
3
3
  require 'net/http'
4
4
  require 'net/https'
5
5
  require 'uri'
6
- require 'rest-client'
6
+ require 'rest_client'
7
7
  require 'telegramObjects'
8
8
 
9
9
  # This library provides an easy way to access to the Telegram Bot API
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telegramAPI
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benedetto Nespoli
@@ -33,7 +33,7 @@ files:
33
33
  - README.md
34
34
  - lib/telegramAPI.rb
35
35
  - lib/telegramObjects.rb
36
- homepage: http://rubygems.org/gems/telegramAPI
36
+ homepage: https://github.com/bennesp/telegramAPI
37
37
  licenses:
38
38
  - MIT
39
39
  metadata: {}