telegram

package
v0.0.0-...-247a5dd Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Ref: https://github.com/rossmcdonald/telegram_hook/blob/master/telegram_hook.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelegramHook

type TelegramHook struct {
	// contains filtered or unexported fields
}

func NewTelegramHook

func NewTelegramHook(token string, targetID int64, level log.Level) (*TelegramHook, error)

func NewTelegramHookWithClient

func NewTelegramHookWithClient(client *tele.Bot, targetID int64, level log.Level) (*TelegramHook, error)

func (*TelegramHook) Fire

func (t *TelegramHook) Fire(entry *log.Entry) error

func (*TelegramHook) Levels

func (t *TelegramHook) Levels() []log.Level

Jump to

Keyboard shortcuts

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