examples

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 9 Imported by: 3

README

All examples has one required argument -token. By default, bots is running in a long poll mode.

If you want to run in a webhook mode, you can use the -webhook-url flag. Listen port set to :8000 by default, you can override it with the -webhook-listen flag.

Name Description Features
calculator Inline Keyboard Calculator Router, Regexp filter, Button Layout
chat-type-filter Handle messages from different chats, in different handlers ChatType filter
echo-bot Copy original messages, with some special cases ParseMode, Webhook Respond, File Uploading, Regexp filter
media-group Send Media group File Uploading, Media Group, Regexp filter, Default handler
quote-bot Search via Inline Mode Inline Mode, Inline Keyboard Markup
webapps Parse and validate Login Widget & WebApp data, host simple webapp WebApps, Login Widget, Embed webhook to http.Mux

Documentation

Overview

Packages examples contains usage examples of go-tg.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(handler tgb.Handler)

Run runs bot with given router. Exit on error.

Types

This section is empty.

Directories

Path Synopsis
Package contains example of using tgb.ChatType filter.
Package contains example of using tgb.ChatType filter.
Package contains example of using tgb.ChatType filter.
Package contains example of using tgb.ChatType filter.
Package contains simple echo bot, that demonstrates how to use handlers, filters and file uploads.
Package contains simple echo bot, that demonstrates how to use handlers, filters and file uploads.
Package contains example of using tgb.ChatType filter.
Package contains example of using tgb.ChatType filter.
Package contains example of using tgb.ChatType filter.
Package contains example of using tgb.ChatType filter.
Package contains example of using tgb.ChatType filter.
Package contains example of using tgb.ChatType filter.

Jump to

Keyboard shortcuts

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