passport_dto

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 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 EncryptedCredentials

type EncryptedCredentials struct {
	Data   string `json:"data"`
	Hash   string `json:"hash"`
	Secret string `json:"secret"`
}

https://core.telegram.org/bots/api#encryptedcredentials

type EncryptedPassportElement

type EncryptedPassportElement struct {
	Type        string         `json:"type"`
	Data        string         `json:"data,omitempty"`
	PhoneNumber string         `json:"phone_number,omitempty"`
	Email       string         `json:"email,omitempty"`
	Files       []PassportFile `json:"files,omitempty"`
	FrontSide   PassportFile   `json:"front_side,omitempty"`
	ReverseSide PassportFile   `json:"reverse_side,omitempty"`
	Selfie      PassportFile   `json:"selfie,omitempty"`
	Translation []PassportFile `json:"translation,omitempty"`
	Hash        string         `json:"hash"`
}

https://core.telegram.org/bots/api#encryptedpassportelement

type PassportData

type PassportData struct {
	Data        []EncryptedPassportElement `json:"data"`
	Credentials EncryptedCredentials       `json:"credentials"`
}

https://core.telegram.org/bots/api#passportdata

type PassportElementError

type PassportElementError interface {
	GetError() string
}

https://core.telegram.org/bots/api#passportelementerror

type PassportElementErrorDataField

type PassportElementErrorDataField struct {
	Source    string `json:"source"`
	Type      string `json:"type"`
	FieldName string `json:"field_name"`
	DataHash  string `json:"data_hash"`
	Message   string `json:"message"`
}

https://core.telegram.org/bots/api#passportelementerrordatafield

func (*PassportElementErrorDataField) GetError

func (q *PassportElementErrorDataField) GetError() string

type PassportElementErrorFile

type PassportElementErrorFile struct {
	Source   string `json:"source"`
	Type     string `json:"type"`
	FileHash string `json:"file_hash"`
	Message  string `json:"message"`
}

https://core.telegram.org/bots/api#passportelementerrorfile

func (*PassportElementErrorFile) GetError

func (q *PassportElementErrorFile) GetError() string

type PassportElementErrorFiles

type PassportElementErrorFiles struct {
	Source     string   `json:"source"`
	Type       string   `json:"type"`
	FileHashes []string `json:"file_hashes"`
	Message    string   `json:"message"`
}

https://core.telegram.org/bots/api#passportelementerrorfiles

func (*PassportElementErrorFiles) GetError

func (q *PassportElementErrorFiles) GetError() string

type PassportElementErrorFrontSide

type PassportElementErrorFrontSide struct {
	Source   string `json:"source"`
	Type     string `json:"type"`
	FileHash string `json:"file_hash"`
	Message  string `json:"message"`
}

https://core.telegram.org/bots/api#passportelementerrorfrontside

func (*PassportElementErrorFrontSide) GetError

func (q *PassportElementErrorFrontSide) GetError() string

type PassportElementErrorReverseSide

type PassportElementErrorReverseSide struct {
	Source   string `json:"source"`
	Type     string `json:"type"`
	FileHash string `json:"file_hash"`
	Message  string `json:"message"`
}

https://core.telegram.org/bots/api#passportelementerrorreverseside

func (*PassportElementErrorReverseSide) GetError

type PassportElementErrorSelfie

type PassportElementErrorSelfie struct {
	Source   string `json:"source"`
	Type     string `json:"type"`
	FileHash string `json:"file_hash"`
	Message  string `json:"message"`
}

https://core.telegram.org/bots/api#passportelementerrorselfie

func (*PassportElementErrorSelfie) GetError

func (q *PassportElementErrorSelfie) GetError() string

type PassportElementErrorTranslationFile

type PassportElementErrorTranslationFile struct {
	Source   string `json:"source"`
	Type     string `json:"type"`
	FileHash string `json:"file_hash"`
	Message  string `json:"message"`
}

https://core.telegram.org/bots/api#passportelementerrortranslationfile

func (*PassportElementErrorTranslationFile) GetError

type PassportElementErrorTranslationFiles

type PassportElementErrorTranslationFiles struct {
	Source     string   `json:"source"`
	Type       string   `json:"type"`
	FileHashes []string `json:"file_hashes"`
	Message    string   `json:"message"`
}

https://core.telegram.org/bots/api#passportelementerrortranslationfiles

func (*PassportElementErrorTranslationFiles) GetError

type PassportElementErrorUnspecified

type PassportElementErrorUnspecified struct {
	Source      string `json:"source"`
	Type        string `json:"type"`
	ElementHash string `json:"element_hash"`
	Message     string `json:"message"`
}

https://core.telegram.org/bots/api#passportelementerrorunspecified

func (*PassportElementErrorUnspecified) GetError

type PassportFile

type PassportFile struct {
	FileID       string `json:"file_id"`
	FileUniqueID string `json:"file_unique_id"`
	FileSize     int    `json:"file_size"`
	FileDate     int    `json:"file_date"`
}

https://core.telegram.org/bots/api#passportfile

Jump to

Keyboard shortcuts

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