types

package
v0.0.0-...-03ce398 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ButtonContent

type ButtonContent string

type ChatId

type ChatId int

type Keyboard

type Keyboard [][]ButtonContent

type Kind

type Kind string
const (
	VIDEO Kind = "video"
	PHOTO Kind = "photo"
	AUDIO Kind = "audio"
)

type Media

type Media struct {
	Source     string
	SourceType Source
	Kind       Kind
}

type Message

type Message struct {
	Text      string
	Keyboard  Keyboard
	Media     []Media
	IsCommand bool
}

type MessageForSend

type MessageForSend struct {
	Message
	Keyboard Keyboard
}

TODO integrate message for send: different in keyboard

type ReceivedMessage

type ReceivedMessage struct {
	Sender  Sender
	Content Message
}

type Sender

type Sender struct {
	ChatId ChatId
	Name   string
	Login  string
}

type Source

type Source string
const (
	URL  Source = "URL"
	PATH Source = "PATH"
)

Jump to

Keyboard shortcuts

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