tgConst

package
v0.0.0-...-f800b22 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USER_NAME          = "$WOTO_USER_NAME"
	BOT_USERNAME       = "$WOTO_BOT_USERNAME"
	FIRST_NAME         = "$WOTO_FIRST_NAME"
	USER_NAME_MENTION  = "$WOTO_USERNAME_MENTION"
	FIRST_NAME_MENTION = "$WOTO_FIRSTNAME_MENTION"
)
View Source
const (
	PV_WARN_M01 = `Dear ` +
		FIRST_NAME_MENTION +
		`, before I message you, please send me a message!`
	PV_WARN_M02 = `Hello! ` +
		FIRST_NAME_MENTION +
		`, I can't send you any message, ` +
		`unless you send me a message!`
	SEND_MESSAGE_M01 = `🔙Send me a message >.<`
	SEND_MESSAGE_M02 = `🔙PM me right now ^.^`
	BOT_START_M01    = `https://t.me/` +
		BOT_USERNAME
)

Variables

This section is empty.

Functions

func ReplaceDyn

func ReplaceDyn(value *string, msg *tg.Message)

ReplaceDynBot will replace the message info with `msg` parameter dynamically. please ensure that `value` is not nil! no need to use wotoMd.GetNormal(), we will do it in this function.

func ReplaceDynBot

func ReplaceDynBot(value *string, api *tg.BotAPI)

ReplaceDynBot will replace the bot info with `api` dynamically. please ensure that `v` is not nil! no need to use wotoMd.GetNormal(), we will do it in this function.

func ReplaceFirstNameMention

func ReplaceFirstNameMention(v *string, firstName string, id int64)

ReplaceFirstNameMention will replace the firstname dynamically, using `firstname` value in `*v`. please ensure that `v` is not nil! no need to use wotoMd.GetNormal(), we will do it in this function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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