telegram

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MATCH_TEMPLATE = "^Sig: (.*)$"
)

Variables

View Source
var (
	POST_STRUCT = map[string]string{
		"default": "🎭 Verifying my Telegram ID @%s for @NextDotID.\nSig: %%SIG_BASE64%%\n\nPowered by Next.ID - Connect All Digital Identities.\n",
		"en_US":   "🎭 Verifying my Telegram ID @%s for @NextDotID.\nSig: %%SIG_BASE64%%\n\nPowered by Next.ID - Connect All Digital Identities.\n",
		"zh_CN":   "🎭 正在通过 @NextDotID 验证我的 Telegram 帐号 @%s 。\nSig: %%SIG_BASE64%%\n\n由 Next.ID 支持 - 连接全域数字身份。\n",
	}
)

Functions

func Init

func Init()

Types

type Telegram

type Telegram struct {
	*validator.Base
}

func (*Telegram) GeneratePostPayload

func (telegram *Telegram) GeneratePostPayload() (post map[string]string)

func (*Telegram) GenerateSignPayload

func (telegram *Telegram) GenerateSignPayload() (payload string)

func (*Telegram) Validate

func (telegram *Telegram) Validate() (err error)

Jump to

Keyboard shortcuts

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