tg

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfirmationTemplate = "*New Login Request*\nClick [Confirm] to continue login.\n\nreqid: `%s`"

	ConfirmedTemplate = "*✅ Login Request Confirmed*\nYour code is: `%s`.\n\nreqid: `%s`"

	DeniedTemplate = "*❌ Login Request Denied*\n\nreqid: `%s`"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TG

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

func New

func New(tgtoken string, reqdb *loginreq.MemDB, logger log.Logger) (*TG, error)

func (*TG) SendConfirmaion

func (t *TG) SendConfirmaion(chatID int64, reqid string) error

func (*TG) StartPolling

func (t *TG) StartPolling()

Jump to

Keyboard shortcuts

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