tghook

package module
v0.0.0-...-4f2aa6d Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 11 Imported by: 0

README

tghook

Telegram channel scraper that launches webhooks

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, channel string, wait time.Duration, callback func(string, time.Time)) error

func RunSchedule

func RunSchedule(ctx context.Context, schedules []Schedule) error

func RunWithFilter

func RunWithFilter(ctx context.Context, channel string, wait time.Duration, filter, data string, upper, trim bool, callback func(string, time.Time)) error

func RunWithHook

func RunWithHook(ctx context.Context, channel string, wait time.Duration, url, method, data, filter, authUser, authPass string, header http.Header, upper, trim bool) error

Types

type Schedule

type Schedule struct {
	Channel string
	Spec    string
	Timeout int
	URL     string
	Filter  string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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