examples

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 9 Imported by: 0

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 Reply, File Uploading, Regexp filter
grayscale-image Bot grayscale user sended image File download, file upload, Message type filter, Custom 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
text-filter Text Filter usage Text filter, reply keyboard markup
webapps Parse and validate Login Widget & WebApp data, host simple webapp WebApps, Login Widget, Embed webhook to http.Mux
session-filter Simple form filling with persistent session Router, Session Manager, Session Filters
menu Hiearchical menu with API integration ButtonLayout, TextMessageBuilder, CallbackDataFilter
retry-flood Retry on flood error Interceptors
business-bot Business bot with multiple handlers Router

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, opts ...tg.ClientOption)

Run runs bot with given router. Exit on error.

Types

This section is empty.

Directories

Path Synopsis
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 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 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 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.

Jump to

Keyboard shortcuts

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