messages

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package messages contains the functions to handle messages and their content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetURLs

func GetURLs(tUTF16 []uint16, entities []tgbotapi.MessageEntity) (urls []string)

GetURLs returns the urls and the markdown links in a message.

func HandleMessage

func HandleMessage(msg *tgbotapi.Message, bot *tgbotapi.BotAPI) (returnedURLs []string, err error)

HandleMessage handles messages and returns referral URLs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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