telegramAPI 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8ec3f9803f250f3541d249abe1e3926d777d2f4
|
4
|
+
data.tar.gz: 434363582068b228d14282c02697848f2225520d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
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.
|
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-
|
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:
|
48
|
+
version: 1.9.2
|
49
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - ">="
|