v1

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddBotQuery

type AddBotQuery struct {
	Token string `json:"token"`
}

type DownloadBufferResult

type DownloadBufferResult struct {
	Data     []byte
	FileInfo FileInfo
}

type DownloadFileQuery

type DownloadFileQuery struct {
	MessageIdentifier
	DraftChatId int64 `json:"draft_chat_id"`
}

type DownloadReaderResult

type DownloadReaderResult struct {
	Data     io.ReadCloser
	FileInfo FileInfo
}

type FileInfo

type FileInfo struct {
	Size        int64
	Name        string
	ContentType string
}

type MessageIdentifier

type MessageIdentifier struct {
	// ChatId represents the telegram chat id
	ChatId int64
	// MessageId represents the telegram message id
	MessageId int
	// FileUniqueId represents the telegram file unique id. This id can be used between bots
	FileUniqueId string
}

MessageIdentifier is a identifier for a telegram message

type UploadFileQuery

type UploadFileQuery struct {
	FileName string `json:"file_name"`
	ChatId   int64  `json:"chat_id"`
}

Jump to

Keyboard shortcuts

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