Skip to content

Commit 0cbcc04

Browse files
authored
Merge branch 'master' into fix-closing-update-channel-add-serverless-method
2 parents 18031c8 + f413d82 commit 0cbcc04

30 files changed

+5633
-2744
lines changed

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
name: Test
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Set up Go 1.x
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: ^1.15
19+
id: go
20+
21+
- name: Check out code into the Go module directory
22+
uses: actions/checkout@v2
23+
24+
- name: Build
25+
run: go build -v .
26+
27+
- name: Test
28+
run: go test -coverprofile=coverage.out -covermode=atomic -v .
29+
30+
- name: Upload coverage report
31+
uses: codecov/codecov-action@v1
32+
with:
33+
file: ./coverage.out

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea/
22
coverage.out
33
tmp/
4+
book/

.travis.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Golang bindings for the Telegram Bot API
22

3-
[![GoDoc](https://godoc.org/github.com/go-telegram-bot-api/telegram-bot-api?status.svg)](http://godoc.org/github.com/go-telegram-bot-api/telegram-bot-api)
4-
[![Travis](https://travis-ci.org/go-telegram-bot-api/telegram-bot-api.svg)](https://travis-ci.org/go-telegram-bot-api/telegram-bot-api)
3+
[![Go Reference](https://pkg.go.dev/badge/github.com/go-telegram-bot-api/telegram-bot-api/v5.svg)](https://pkg.go.dev/github.com/go-telegram-bot-api/telegram-bot-api/v5)
4+
[![Test](https://github.com/go-telegram-bot-api/telegram-bot-api/actions/workflows/test.yml/badge.svg)](https://github.com/go-telegram-bot-api/telegram-bot-api/actions/workflows/test.yml)
55

66
All methods are fairly self explanatory, and reading the [godoc](http://godoc.org/github.com/go-telegram-bot-api/telegram-bot-api) page should
77
explain everything. If something isn't clear, open an issue or submit
@@ -18,7 +18,7 @@ you want to ask questions or discuss development.
1818
## Example
1919

2020
First, ensure the library is installed and up to date by running
21-
`go get -u github.com/go-telegram-bot-api/telegram-bot-api`.
21+
`go get -u github.com/go-telegram-bot-api/telegram-bot-api/v5`.
2222

2323
This is a very simple bot that just displays any gotten updates,
2424
then replies it to that chat.
@@ -29,7 +29,7 @@ package main
2929
import (
3030
"log"
3131

32-
"github.com/go-telegram-bot-api/telegram-bot-api"
32+
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
3333
)
3434

3535
func main() {
@@ -62,7 +62,7 @@ func main() {
6262
}
6363
```
6464

65-
There are more examples on the [wiki](https://github.com/go-telegram-bot-api/telegram-bot-api/wiki)
65+
There are more examples on the [site](https://go-telegram-bot-api.dev/)
6666
with detailed information on how to do many different kinds of things.
6767
It's a great place to get started on using keyboards, commands, or other
6868
kinds of reply markup.

book.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[book]
2+
authors = ["Syfaro"]
3+
language = "en"
4+
multilingual = false
5+
src = "docs"
6+
title = "Go Telegram Bot API"
7+
8+
[output.html]
9+
git-repository-url = "https://github.com/go-telegram-bot-api/telegram-bot-api"

0 commit comments

Comments
 (0)