You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All documention is now less than 80 characters wide. Old methods now
show deprecated warnings. The Values/Params/Method functions are now
private. Types and configs have required and optional comments on
them. Simplified some function logic.
All methods have been added, and all features should be available.
7
-
If you want a feature that hasn't been added yet or something is broken, open an issue and I'll see what I can do.
7
+
If you want a feature that hasn't been added yet or something is broken,
8
+
open an issue and I'll see what I can do.
8
9
9
-
All methods are fairly self explanatory, and reading the godoc page should explain everything. If something isn't clear, open an issue or submit a pull request.
10
+
All methods are fairly self explanatory, and reading the godoc page should
11
+
explain everything. If something isn't clear, open an issue or submit
12
+
a pull request.
10
13
11
-
The scope of this project is just to provide a wrapper around the API without any additional features. There are other projects for creating something with plugins and command handlers without having to design all that yourself.
12
-
13
-
Note to previous users, there was just a large change that broke some methods. The main changes are that all the `Send*` functions have been replaced with a single `Send`, and `UpdatesChan` was renamed `GetUpdatesChan` and returns `(chan, err)` instead of storing the chan in `Updates`.
14
+
The scope of this project is just to provide a wrapper around the API
15
+
without any additional features. There are other projects for creating
16
+
something with plugins and command handlers without having to design
17
+
all that yourself.
14
18
15
19
## Example
16
20
17
-
This is a very simple bot that just displays any gotten updates, then replies it to that chat.
21
+
This is a very simple bot that just displays any gotten updates,
22
+
then replies it to that chat.
18
23
19
24
```go
20
25
package main
@@ -50,7 +55,8 @@ func main() {
50
55
}
51
56
```
52
57
53
-
If you need to use webhooks for some reason (such as running on Google App Engine), you may use a slightly different method.
58
+
If you need to use webhooks (if you wish to run on Google App Engine),
59
+
you may use a slightly different method.
54
60
55
61
```go
56
62
package main
@@ -85,8 +91,12 @@ func main() {
85
91
}
86
92
```
87
93
88
-
If you need, you may generate a self signed certficate, as this requires HTTPS / TLS. The above example tells Telegram that this is your certificate and that it should be trusted, even though it is not properly signed.
94
+
If you need, you may generate a self signed certficate, as this requires
95
+
HTTPS / TLS. The above example tells Telegram that this is your
96
+
certificate and that it should be trusted, even though it is not
0 commit comments