Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rusq/tbcomctl
Telegram Bot Common Controls (using github.com/tucnak/telebot)
https://github.com/rusq/tbcomctl
comctl common-controls golang library logging picklist rating telebot telegram-bot
Last synced: 6 days ago
JSON representation
Telegram Bot Common Controls (using github.com/tucnak/telebot)
- Host: GitHub
- URL: https://github.com/rusq/tbcomctl
- Owner: rusq
- License: mit
- Created: 2021-02-17T10:20:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T11:05:33.000Z (about 2 months ago)
- Last Synced: 2024-10-01T09:31:48.027Z (about 1 month ago)
- Topics: comctl, common-controls, golang, library, logging, picklist, rating, telebot, telegram-bot
- Language: Go
- Homepage:
- Size: 199 KB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
===================================
Common Controls Library for Telebot
===================================Library provides common controls to use with Telebot_ library.
Controls:
* Picklist - add inline keyboard to bots messages.
* Post Buttons - add buttons to your channel posts.
* Rating - rating buttons for channel posts.
* Keyboard - a convenient way to create a keyboard.
* Input - ask user for input and process the answer in OnText.Abstractions:
* Form (combines other controls into a pipeline, see examples_)
Utilities:
* Subscription - check if user is subscribed to the channels of interest.
* Middleware - some helpful middleware functions.
* Helper functions for logging, etc.Breaking Changes in V4
======================Controls now operate on Interfaces defined in `interface.go` rather than functions.
There's a new convenience structure TVC which can be used to wrap the functions when updating to v4.See examples_ for usage.
Installation
============For Telebot_ v3::
go get github.com/rusq/tbcomctl/v4For Telebot_ v2::
go get github.com/rusq/tbcomctl
// or
go get github.com/rusq/tbcomctl/v2v2 is not actively developed, but you're more than welcome to submit your PRs.
Usage
=====
For usage - see examples_... _Telebot: https://github.com/tucnak/telebot
.. _examples: examples