Discover Packages
github.com/mr-linch/go-tg
examples
package
Version:
v0.14.0
Opens a new window with list of versions in this module.
Published: Mar 13, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
README
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
Expand ▾
Collapse ▴
Documentation
¶
Packages examples contains usage examples of go-tg.
func Run(handler tgb .Handler , opts ...tg.ClientOption)
Run runs bot with given router.
Exit on error.
Source Files
¶
Directories
¶
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.
Click to show internal directories.
Click to hide internal directories.