format

package
v0.0.0-...-189dd48 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicFormat

func BasicFormat(format string, user *gotgbot.User, extraParams ...map[string]any) string

BasicFormat formats a string with the mention, name and user_id values.

func FormatString

func FormatString(format string, values map[string]any) string

FormatString returns a string formatted with the values from the values.

func FullName

func FullName(user *gotgbot.User) (s string)

FullName returns the full name of a user.

func Mention

func Mention(user *gotgbot.User) (s string)

Mention creates a html string that mentions the user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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