Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 1.02 KB

README.md

File metadata and controls

13 lines (7 loc) · 1.02 KB

CommunityBot

DockerHub: https://hub.docker.com/repository/docker/mrmodest/communitybot

Description

Simple telegram bot which was created for internal closed community.

New bot command can be implemented by inhering base class for this: BotCommandHandlerBase. Then you need override Config for set command name and using flags. After you must write the handle logic and return result which will be interpreted to send response if needed.

If you need more complex handle logic than simple bot command, you can inherit UpdateHandlerBase. For this you need override AllowedUpdates, CanHandle and similarly implement your handle logic.

BotClient's sending methonds calling in BotService in method SendResult based on IUpdateHandlerResult (which returned by update handlers).