GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - go-telegram/ui: UI controls for Telegram Bot API go framework

BranchesTags
Open more actions menu

Latest commit

 

History

43 Commits
43 Commits

Folders and files

NameName
Last commit message
Last commit date
datepicker
datepicker
 
 
dialog
dialog
 
 
examples
examples
 
 
keyboard
keyboard
 
 
paginator
paginator
 
 
progress
progress
 
 
slider
slider
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
changelog.md
changelog.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
readme.md
readme.md
 
 

Repository files navigation

Go Telegram Bot UI

The project is under development. API may be changed before v1.0.0 version.

Telegram Group

UI controls for telegram bot go-telegram/bot

  • datepicker
  • inline keyboard
  • reply keyboard
  • paginator
  • slider
  • progress
  • dialog
  • timepicker (todo)

Feel to free to contribute and issues!

Getting Started

go get github.com/go-telegram/bot
go get github.com/go-telegram/ui

Important

UI components register own bot handlers on init. If you restart the bot instance, inline buttons in already opened components can't work.

For solving this issue, you should use bot.WithPrefix option for instance of widgets.

Example:

picker := datepicker.New(
    b, 
    onDatepickerSimpleSelect, 
    datepicker.WithPrefix("datepicker-simple"),
)

Live demo

You can run demo bot from examples folder.

Before start, you should set EXAMPLE_TELEGRAM_BOT_TOKEN environment variable to your bot token.

    go run examples/*.go

Also, you can try online version of this bot right now.

DatePicker

datepicker_1.png

  • custom localizations
  • define include/exclude dates

Documentation

Inline Keyboard

inline_keyboard.png

Small helper for easy building of inline keyboard.

Documentation

Reply Keyboard

reply_keyboard.png

Small helper for easy building of a reply keyboard markup.

Documentation

Paginator

paginator.png

  • pass any slice of strings
  • set perPage value
  • set custom lines separator

Documentation

Slider

slider.png

  • pass slides with images and text

Documentation

Progress

progress.png

Progress bar for long tasks

Documentation

Dialog

dialog.gif

Simple dialogs

Documentation

About

UI controls for Telegram Bot API go framework

Topics

gotelegramtelegram-bottelegram-bot-api

Resources

Readme
MIT license
Activity
Custom properties

Stars

226 stars

Watchers

7 watching

Forks

24 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.