Bump import versions
This commit is contained in:
parent
19e9a06795
commit
466b3a32a9
6 changed files with 12 additions and 12 deletions
10
README.md
10
README.md
|
@ -1,9 +1,9 @@
|
||||||
# Golang bindings for the Telegram Bot API
|
# Golang bindings for the Telegram Bot API
|
||||||
|
|
||||||
[](https://pkg.go.dev/github.com/go-telegram-bot-api/telegram-bot-api/v5)
|
[](https://pkg.go.dev/github.com/eli-l/telegram-bot-api/v7)
|
||||||
[](https://github.com/go-telegram-bot-api/telegram-bot-api/actions/workflows/test.yml)
|
[](https://github.com/go-telegram-bot-api/telegram-bot-api/actions/workflows/test.yml)
|
||||||
|
|
||||||
All methods are fairly self-explanatory, and reading the [godoc](https://pkg.go.dev/github.com/go-telegram-bot-api/telegram-bot-api/v5) page should
|
All methods are fairly self-explanatory, and reading the [godoc](https://pkg.go.dev/github.com/eli-l/telegram-bot-api/v7) page should
|
||||||
explain everything. If something isn't clear, open an issue or submit
|
explain everything. If something isn't clear, open an issue or submit
|
||||||
a pull request.
|
a pull request.
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ you want to ask questions or discuss development.
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
First, ensure the library is installed and up to date by running
|
First, ensure the library is installed and up to date by running
|
||||||
`go get -u github.com/go-telegram-bot-api/telegram-bot-api/v5`.
|
`go get -u github.com/eli-l/telegram-bot-api/v7`.
|
||||||
|
|
||||||
This is a very simple bot that just displays any gotten updates,
|
This is a very simple bot that just displays any gotten updates,
|
||||||
then replies it to that chat.
|
then replies it to that chat.
|
||||||
|
@ -31,7 +31,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
|
tgbotapi "github.com/eli-l/telegram-bot-api/v7"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -72,7 +72,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/go-telegram-bot-api/telegram-bot-api/v5"
|
"github.com/eli-l/telegram-bot-api/v7"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
|
tgbotapi "github.com/eli-l/telegram-bot-api/v7"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
|
tgbotapi "github.com/eli-l/telegram-bot-api/v7"
|
||||||
)
|
)
|
||||||
|
|
||||||
var numericKeyboard = tgbotapi.NewInlineKeyboardMarkup(
|
var numericKeyboard = tgbotapi.NewInlineKeyboardMarkup(
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
|
tgbotapi "github.com/eli-l/telegram-bot-api/v7"
|
||||||
)
|
)
|
||||||
|
|
||||||
var numericKeyboard = tgbotapi.NewReplyKeyboard(
|
var numericKeyboard = tgbotapi.NewReplyKeyboard(
|
||||||
|
|
|
@ -10,7 +10,7 @@ approaches to solve common problems.
|
||||||
## Installing
|
## Installing
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get -u github.com/go-telegram-bot-api/telegram-bot-api/v5
|
go get -u github.com/eli-l/telegram-bot-api/v7
|
||||||
```
|
```
|
||||||
|
|
||||||
## A Simple Bot
|
## A Simple Bot
|
||||||
|
@ -22,7 +22,7 @@ messages repeating what you said. Make sure you get an API token from
|
||||||
Let's start by constructing a new [BotAPI][bot-api-docs].
|
Let's start by constructing a new [BotAPI][bot-api-docs].
|
||||||
|
|
||||||
[botfather]: https://t.me/Botfather
|
[botfather]: https://t.me/Botfather
|
||||||
[bot-api-docs]: https://pkg.go.dev/github.com/go-telegram-bot-api/telegram-bot-api/v5?tab=doc#BotAPI
|
[bot-api-docs]: https://pkg.go.dev/github.com/eli-l/telegram-bot-api/v7?tab=doc#BotAPI
|
||||||
|
|
||||||
```go
|
```go
|
||||||
package main
|
package main
|
||||||
|
@ -30,7 +30,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
|
tgbotapi "github.com/eli-l/telegram-bot-api/v7"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/eli-l/telegram-bot-api/v5"
|
"github.com/eli-l/telegram-bot-api/v7"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue