Commit Graph

122 Commits

Author SHA1 Message Date
Rikitav 2d97fe5339 Removed Method GetDescriptorsList from IHandlersCollection 2025-08-19 05:39:22 +04:00
Rikitav 890ee3616c Optimizations to HandlersCollections 2025-08-19 04:51:53 +04:00
Rikitav 24c10ceb24 Union extension method changed to UnionAdd to avoid conflicts 2025-08-19 04:48:01 +04:00
Rikitav 5cbf2502f6 restrictions to HandlersProvider 2025-08-19 04:35:28 +04:00
Rikitav 16440bcf43 * Added protection from NotImplementedException to HandlerBuilderBase
* Moved AddHandler<T> and AddHandler(Type) methods from IHandlersCollection to extension methods
* Added public constructor to IHost types form extensibility
* Code cleanup
2025-08-19 04:33:02 +04:00
Rikitav a5bae95bad Added missing XML-Summaries 2025-08-19 01:51:23 +04:00
Rikitav c6d1abeacb Added keyboard markup generation from properties 2025-08-19 01:41:06 +04:00
Rikitav 707f4222ff Added support for ReplyKeyboardMarkup generation 2025-08-19 01:05:45 +04:00
Rikitav 065430a52f Code cleanup 2025-08-18 21:15:48 +04:00
Rikitav c809470fb0 * Implicit handlers building extensions generator refactored
* Telegram.Bot package updated
2025-08-18 20:32:24 +04:00
Rikitav cf598ea91e * Added ReplyKeyboardMarkupGenerator
* Added set of markup attributes dedicatedf to map a keyboard using partial methods
2025-08-16 13:13:34 +04:00
Rikitav cdd03a3e0e Incremented and fixed version 2025-08-13 01:12:26 +04:00
Rikitav 68e171f082 Added types for future State keepers overhaul 2025-08-13 01:11:42 +04:00
Rikitav cbfb1d4e8d * minor changes to state keepers 2025-08-13 00:58:37 +04:00
Rikitav ccfefa578d Changed summaries for InlineQueryHandler to match new restrict 2025-08-12 01:02:40 +04:00
Rikitav 2df3485078 Added frozing collection after adding inlinequeryhandler once, no prevent multiple instances of this handler in collection 2025-08-12 00:56:41 +04:00
Rikitav 7957d63c2b Version incremented 2025-08-12 00:43:43 +04:00
Rikitav 8299551d69 Added missing XML summaries 2025-08-12 00:42:43 +04:00
Rikitav 3b7908756d * Added new handler type "InlineQueryHandler"
* Acts as complex multi-type handler that supports InlineQuery AND ChosenInlineQuery updates
* Added "UpdateTypeExtensions.SuppressTypes" to suppress some of update types for multi-type handlers
* Logging adjustments
* Changed extension method "HasPublicProperties" to extned Type
2025-08-12 00:09:45 +04:00
Rikitav a1af9bdc3e * BugFixes
* Added basic command arguments filters
2025-08-10 18:59:31 +04:00
Rikitav 3a88feb5f1 * Improved filter fallback search logic
* Fixed Environment variable filter logic
* Changed some logs to trace level
* Added new Message extension methods
2025-08-10 02:48:45 +04:00
Rikitav 0cf8ea27b6 * quickfix 2025-08-08 17:30:17 +04:00
Rikitav cee7ed3adc Added missing XML summaries 2025-08-08 17:15:57 +04:00
Rikitav d8fa0b02d7 Removed "anyMatched" variable as unused 2025-08-08 17:07:13 +04:00
Rikitav bf66431089 * Added "INamedFilter" to tagging filters. Required for fallbacking system
* AnonymousCompiledFilter now has undependent realization
* All internal filters now implement INamedFilter interface
* Added new static methods to "Filter" class
* Added Filters fallbacking system
* Added "FiltersFallback" method in "UpdatehandlerBase"
* Changed filters validating system to be able to report failed filters
* Added "FiltersFallbackReport" class
* Added "FormReport" Property to "UpdateHandlerAttributeBase"
* Version incremented
2025-08-08 17:04:56 +04:00
Rikitav e790f31495 * Implemented IDisposable interface for handlers and added virtual method if such needed 2025-08-04 05:22:43 +04:00
Rikitav a794b6ed54 * Version incremented
* Added ability to handle errors during filters validation inside Handlers
* Moved Result class to root directory
* Added FilterOrigin enum
2025-08-04 05:11:59 +04:00
Rikitav afb500cfc6 * Added IOptions services checking for host builders 2025-08-04 04:33:34 +04:00
Rikitav cb9e158e6c * Fixed HostedUpdateWebhooker startup logic 2025-08-04 04:27:04 +04:00
Rikitav 6635d00648 * Code cleanup
* Moved handler execution logic from "DescribedHandlerInfo" to "UpdateHandlerBase"
* Added logging message on handler described
2025-08-04 04:25:00 +04:00
Rikitav 1e0b5078c6 Fixed logging call inside main lib 2025-08-03 03:42:27 +04:00
Rikitav a87a07d939 * Added Logging abstraction for base library
* Version incremented
2025-08-03 03:29:15 +04:00
Rikitav 34ac0231d5 * Added missing XML summaries for new components 2025-08-03 01:59:19 +04:00
Rikitav b14d848537 * Added new namespace "Aspects" and types dedicated for aspected handlers processing, including Pre\Post processors
* Added new DescriptorAspectsSet class, used for mamanging and executing aspects of handlers
* Processors can prevent handlers execution using Result.Fault()
* Added field to DescribedHandlerInfo for getting descriptor from which this handler was described
* Removed unused reflection extension methods
2025-08-03 00:28:10 +04:00
Rikitav 18e361322e * Added missing XML summaries to new CallbackQuery methods
* Fixed CallbackQuery's origin message resolving inside Callbback query container extension methods
2025-08-02 21:01:29 +04:00
Rikitav bb5ca1daad Merge pull request #2 from JotaroSamo/feat/callback
Add Response, EditText, AnswerCallback in CallbackQueryHandler
2025-08-02 20:43:38 +04:00
HONOR 2293f24808 Add Response, EditText, AnswerCallback in CallbackQueryHandler 2025-08-02 03:11:07 +03:00
Rikitav 692f0e0875 * README tweaks 2025-08-02 03:36:48 +04:00
Rikitav 7d1ce6ea22 * Added mising XML summaries
* Obsolete code comments cleanup
2025-08-02 03:33:35 +04:00
Rikitav 02e23eefdd * version incremented 2025-08-02 03:23:33 +04:00
Rikitav a1442e80f8 * merged results branch with master 2025-08-02 03:22:00 +04:00
Rikitav 8e0d271901 * Fixed method handlers behaviour 2025-08-02 03:19:52 +04:00
Rikitav da3c418a1a * Fixed unnecesary configuring of TelegraotrOptions inside Builder 2025-08-02 02:38:34 +04:00
Rikitav 83fc5cc629 * Moved configuring logic to post build of Web application
* Added new TRelegratorWebOptions class to configure Webhooksusing extenral configuration tools
2025-08-02 02:37:07 +04:00
Rikitav 16d11990ec * Added Result class to communicate with router from handler
* Removed "ExecuteOnlyFirstFoundHanlder" in sake of testing new Result pattern based routing system
* Removed obsolete option property "DescendDescriptorIndex"
* Changed router logic
* Changed handlers pool logic
2025-08-02 02:32:38 +04:00
Rikitav b8e4398b50 * Moved configuration to post build actions
* Added option to completelly disable automatic configuration
2025-08-02 00:27:23 +04:00
Rikitav 088d6166ce * Method descriptor creation hotfix 2025-08-01 15:48:54 +04:00
Rikitav a5bfe7da24 * version incremented
* Added XML summaries to new members
* Added TrySetInstance to HandlerDescriptor. Exception-free version of SetInstance method
* Changed singleton ionstance setting in HandlersProvidedr
2025-08-01 15:11:05 +04:00
Rikitav 92add58180 * moved WelcomeAttribute to a separate namespace for special case-targetted attribute
* Added "MethodHandlerDescriptor" a class that provides ability to implicitly create handlers from methods that matches the AbstractHandlerAction<T> delegate
* Added extension method for HandlersCollection for adding methods as handlers
2025-08-01 15:03:19 +04:00
Rikitav 6ea58b24da * Encapsulated "reply" and "respond" methods into extension methods for the container class 2025-08-01 14:02:01 +04:00