test

package
v0.0.0-...-90ef764 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotChat

type BotChat struct {
	Id int `json:"id"`
}

type BotFrom

type BotFrom struct {
	Id        int    `json:"id"`
	FirstName string `json:"first_name"`
	Username  string `json:"username"`
}

type BotMessage

type BotMessage struct {
	MessageId int      `json:"message_id"`
	From      *BotFrom `json:"from"`
	Chat      *BotChat `json:"chat"`
	Text      string   `json:"text"`
}

type BotRequest

type BotRequest struct {
	UpdateId int         `json:"update_id"`
	Message  *BotMessage `json:"message"`
}

type MockServer

type MockServer struct {
	Method  string
	Status  int
	Queries map[string]string
	Body    interface{}
	Url     string
}

func NewMockServer

func NewMockServer() *MockServer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL