telegram

package
v0.0.0-...-bafbf86 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitBotAPI

func InitBotAPI(botToken string) *tgbotapi.BotAPI

InitBotAPI - InitBotAPI

Types

type APIView

type APIView struct {
}

APIView - do stuff using telegram api

func NewTelegramAPIView

func NewTelegramAPIView(botToken string) *APIView

NewTelegramAPIView - constructor

func (*APIView) ShowAnimation

func (t *APIView) ShowAnimation(animation output.ViewAnimationData) (int, error)

ShowAnimation - display image using telegram bot api

func (*APIView) ShowAudio

func (t *APIView) ShowAudio(msg output.ViewAudioData) (int, error)

ShowAudio - display audio message using telegram bot api

func (*APIView) ShowImage

func (t *APIView) ShowImage(msg output.ViewImageData) (int, error)

ShowImage - display image using telegram bot api

func (*APIView) ShowMessage

func (t *APIView) ShowMessage(msg output.ViewMessageData) (int, error)

ShowMessage - display msg using telegram bot api

Jump to

Keyboard shortcuts

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