adapter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputPsqlRepository

type InputPsqlRepository struct {
	// contains filtered or unexported fields
}

func NewInputPsqlRepository

func NewInputPsqlRepository(conn *sql.DB) *InputPsqlRepository

func (*InputPsqlRepository) Save

func (r *InputPsqlRepository) Save(ctx context.Context, input domain.Input) error

type TelegramServiceTgBotApi

type TelegramServiceTgBotApi struct {
	// contains filtered or unexported fields
}

func NewTelegramServiceTgBotApi

func NewTelegramServiceTgBotApi(bot *tgbotapi.BotAPI) *TelegramServiceTgBotApi

NewTelegramServiceTgBotApi TODO

func (*TelegramServiceTgBotApi) IsChatValid

func (t *TelegramServiceTgBotApi) IsChatValid(ctx context.Context, chatID int64, userID int64) (bool, error)

IsChatValid verify if chat below to the user ID and if the current bot have the required permissions on that chat.

Jump to

Keyboard shortcuts

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