telegramAPI 1.0.9 → 1.0.10

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee24f254be69de2454c4e6f33423ceffbbec033c
4
- data.tar.gz: f29d97da3c75d38057c21d1e4ecdb5a668acd2fa
3
+ metadata.gz: c8ec3f9803f250f3541d249abe1e3926d777d2f4
4
+ data.tar.gz: 434363582068b228d14282c02697848f2225520d
5
5
  SHA512:
6
- metadata.gz: 6526e08f13d66a60a3d33f5f0ec7f99967c5c6bcd654a1521c34ed4f44c9fe2a3a9f349c87e2605c4b3784bc922e310ede721c7bc586531398ab5bfabab8df2e
7
- data.tar.gz: 871f675d8e3fafb0317bf3612276d675e0b1affc4607788a4af25c73f3b2e2b3845ca464bb5077cc051a881bac1e3cc6812b29fd4cddc496732ef1680eded70d
6
+ metadata.gz: 3f98f59daa89989c082b8a0d58c3a544753494cbedeab1d01353cc24a7ad11d72c00bc5f5751949045214fae56135202990d1d0b014f9a6061c812c8aa959cd9
7
+ data.tar.gz: abd89ca922065785285add8c5a800671e611f6c64b3866539495e4a96825175ee07a129589a55d125807c9a4acf7cb08d5331116664f8e45461f2ce891958eef
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # TelegramAPI
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/telegramAPI.svg)](https://badge.fury.io/rb/telegramAPI)
4
+
3
5
  This is a simple and lightweight Ruby API for Telegram Bots.
4
6
 
5
7
  With this tiny library you can create awesome Telegram Bot!
6
8
 
7
- Version: 1.0.9
9
+ Version: 1.0.10
8
10
 
9
11
  ## Installation
10
12
 
@@ -72,3 +74,20 @@ api.sendVideo m.message.chat.id, "/home/path-of-video/video.mp4"
72
74
  api.sendLocation m.message.chat.id, 45.462781, 9.177732
73
75
  ```
74
76
  **Note:** According to Telegram, each audio must be encoded in **Ogg OPUS**, and each video must be encoded in **mp4**.
77
+
78
+ ### Send Custom Keyboards
79
+
80
+ You can find the complete list of options at the offical [Telegram API Bots](https://core.telegram.org/bots/api#replykeyboardhide) page.
81
+
82
+ ```ruby
83
+ markup = {
84
+ keyboard=>[["YES!", "Yes"], ["Well..", "No.."]],
85
+ # Other optional settings:
86
+ resize_keyboard=>true,
87
+ one_time_keyboard=>true,
88
+ selective=>true,
89
+ force_reply=>true
90
+ }
91
+
92
+ api.sendMessage m.message.chat.id, "Am I sexy?", {"reply_markup"=>markup}
93
+ ```
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telegramAPI
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benedetto Nespoli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -45,7 +45,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: 1.9.2
49
49
  required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="