This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
6 changed files with
12 additions and
4 deletions
-
bot_test.go
-
go.mod
-
go.sum
-
helpers_test.go
-
passport.go
-
types_test.go
|
|
|
@ -8,7 +8,7 @@ import ( |
|
|
|
|
"testing" |
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
"github.com/go-telegram-bot-api/telegram-bot-api" |
|
|
|
|
"git.tomans.ru/Tomansru/telegram-bot-api" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
|
|
|
|
@ -0,0 +1,5 @@ |
|
|
|
|
module git.tomans.ru/Tomansru/telegram-bot-api |
|
|
|
|
|
|
|
|
|
go 1.13 |
|
|
|
|
|
|
|
|
|
require github.com/technoweenie/multipartstreamer v1.0.1 |
|
|
|
@ -0,0 +1,2 @@ |
|
|
|
|
github.com/technoweenie/multipartstreamer v1.0.1 h1:XRztA5MXiR1TIRHxH2uNxXxaIkKQDeX7m2XsSOlQEnM= |
|
|
|
|
github.com/technoweenie/multipartstreamer v1.0.1/go.mod h1:jNVxdtShOxzAsukZwTSw6MDx5eUJoiEBsSvzDU9uzog= |
|
|
|
@ -1,8 +1,9 @@ |
|
|
|
|
package tgbotapi_test |
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
|
"github.com/go-telegram-bot-api/telegram-bot-api" |
|
|
|
|
"testing" |
|
|
|
|
|
|
|
|
|
"git.tomans.ru/Tomansru/telegram-bot-api" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
func TestNewInlineQueryResultArticle(t *testing.T) { |
|
|
|
|
|
|
|
@ -307,7 +307,7 @@ type ( |
|
|
|
|
MiddleNameNative string `json:"middle_name_native"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// IdDocumentData https://core.telegram.org/passport#iddocumentdata
|
|
|
|
|
// IDDocumentData https://core.telegram.org/passport#iddocumentdata
|
|
|
|
|
IDDocumentData struct { |
|
|
|
|
DocumentNumber string `json:"document_no"` |
|
|
|
|
ExpiryDate string `json:"expiry_date"` |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ import ( |
|
|
|
|
"testing" |
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
"github.com/go-telegram-bot-api/telegram-bot-api" |
|
|
|
|
"git.tomans.ru/Tomansru/telegram-bot-api" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
func TestUserStringWith(t *testing.T) { |
|
|
|
|