FlorianDahn
8e29652148
Fixing possible Deadlock in AutoCleanForm
2021-10-17 15:39:31 +02:00
FlorianDahn
e0ec133209
AutoCleanForm FIX
...
- adding MessageDeleted event to AutoCleanForm for catching messages getting deleted outside of AutoCleanForm
- added OnMessageDelete invoke to DeleteMessage in DeviceSession
2021-10-01 18:35:05 +02:00
FlorianDahn
f021f12486
Update Localization.cs
...
- change to abstract so it can't be used accidentally
2021-07-27 17:00:16 +02:00
FlorianDahn
71433c0e4e
MAJOR CHANGE for ButtonGrids, Dynamic data sources, etc
...
- introducing a dynamic data source class (IDataSource)
- introducing a ButtonRow class for better managability
- replacing that List<ButtonBase> with ButtonRow object
- introducing ButtonFormDataSource with special methods for ButtonGrid controls
- updating ButtonGrid and refactoring of the Load/Action methods
- updating CheckButtonList and refactoring of the Load/Action methods
- updating TaggedButtonGrid and refactoring of the Load/Action methods
- adding example to the Test project
2021-07-26 15:10:10 +02:00
FlorianDahn
894d0799c8
Localizations updated
...
- moved German Localization to its seperate file
- cleaned up Localization class
2021-07-26 14:55:29 +02:00
FlorianDahn
6c2543630d
Adding .NET 4.7.2 back into with conditional compilation
...
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives
2021-07-26 13:32:32 +02:00
FlorianDahn
84d18f6f45
Small readability improvements
2021-07-26 01:26:33 +02:00
FlorianDahn
5f49e25458
Adding CheckAll and UncheckAllTags methods
2021-07-26 01:23:31 +02:00
FlorianDahn
f28c9b1e22
Add DeleteReplyMessage property
2021-07-26 01:22:58 +02:00
FlorianDahn
2158f53cde
Fixing ReplyKeyboard flicker on TaggedButtonGrid
...
- fixing ReplyKeyboard flicker
- updating message handling on existing messages
2021-07-25 17:44:43 +02:00
FlorianDahn
fd7d72b986
Update NavigationController.cs
2021-07-25 16:40:09 +02:00
FlorianDahn
ce4c7b6f1c
Update TelegramBotBase.csproj
2021-07-25 16:36:43 +02:00
FlorianDahn
5bae650edc
Updating compilation targets
...
- Removing .NET 4.7.2 and and replacing it with .NET 5
2021-07-25 16:35:15 +02:00
FlorianDahn
6f005114bc
Update NavigationController.cs
...
- Adding PopToRootAsync method
- small comment change
2021-07-25 16:33:05 +02:00
Florian Dahn
00440a50e8
Merge pull request #11 from MajMcCloud/master
...
Move Master changes to development branch
2021-07-25 05:07:31 +03:00
FlorianDahn
ae9dd17ae3
Adding NavigationController for better and optional Push/Pop navigation
2021-07-25 01:54:16 +02:00
FlorianDahn
be2660239a
Creating DeviceSession and other stuff slight earlier in the LoadSessionStates methods
2021-07-25 01:53:55 +02:00
Florian Dahn
e88114049e
Merge pull request #8 from Xilosof/feat/QuickDeletionOfMsgs
...
Thanks for the added change. I will approve it now.
2021-07-25 02:10:30 +03:00
Xilosof
177c198916
Added event call
2021-07-23 16:47:42 +03:00
Florian Dahn
d6051ce607
Merge pull request #10 from MajMcCloud/development
...
Updating to TelegramBotFramework 16.0.2
2021-07-17 19:35:17 +03:00
FlorianDahn
5613e84bc3
Updating to TelegramBotFramework 16.0.2
...
ATTENTION: UserIds will no longer be "int", instead it has to be of the long datatype
- updating DeviceSession methods for new datatype
- updating LinkReplaceTest class example
- adding .NET 5 as target framework
2021-07-17 18:34:27 +02:00
Florian Dahn
d52fd41467
Merge pull request #9 from MajMcCloud/development
...
Development
2021-07-14 23:11:32 +03:00
Xilosof
9012ec76b1
feat(AutoCleanForm): change deletion of msgs
...
- made faster deletion of old messages;
- added server error handling
2021-07-13 22:48:01 +03:00
Danich Volk
36fb40b6bd
CalendarPicker:
...
+ Added days, monthes and years range check
+ Added language selection
* Fixed default language (it is English now)
2021-07-13 21:18:55 +03:00
FlorianDahn
47aa8c2aaa
Extracting custom field conversion for use in other places
2021-06-07 01:35:02 +02:00
FlorianDahn
1709631965
adding GetObject and SaveObject methods for custom session serialization
...
- adding GetObject and SaveObject methods for custom session serialization
2021-06-07 01:33:57 +02:00
FlorianDahn
264a998052
Update FormBase.cs
...
- making more basic methods virtual for easiert overriding
- adding existing control check to AddControl method
2021-06-07 01:33:19 +02:00
FlorianDahn
a00aaacbfb
Update ButtonGrid.cs
...
- adding DeleteReplyMessage property for seperating now deleting the message from the user and the message (buttons) send by the control
2021-06-07 01:31:41 +02:00
FlorianDahn
e2c485aede
Adding some conversion checks for JSON State serialization
2021-04-25 15:51:19 +02:00
FlorianDahn
c8936d0748
Adding more details to PromptDialog
...
- replacing the default EventArgs within the Completed event with a more detailed one
- adding new PromptDialogCompletedEventArgs class for easier details access
2021-03-29 23:51:39 +02:00
FlorianDahn
92f12735c8
Adding more details on ConfirmDialog
...
- adding a Tag property for optional use in ArrayPromptDialog and ConfirmDialog
- adding it to the ButtonClickedEventArgs
2021-03-29 23:50:42 +02:00
Florian Dahn
8142b626b2
Merge pull request #3 from Xilosof/bug/ApiRequestException-handling
...
Fix handling ApiRequestException when sending a request.
2021-03-14 20:34:07 +01:00
Xilosof
5dcbe04a73
Added initialization of MaxNumberOfRetries setting
2021-03-14 22:03:13 +03:00
Xilosof
e742ded371
Change exception handling when sending a request.
...
1) Now RetryAfter is multiplied by 1000, because request contains value in second instead milliseconds. (see https://core.telegram.org/bots/api#responseparameters )
2) Now calls occur in a loop, but a limited number of times. This also ensures that exceptions are caught during a repeated request.
2021-03-14 22:00:51 +03:00
Xilosof
706b0f522a
Add static propert MaxNumberOfRetries.
...
This is necessary so that the DeviceSession instance can get this setting. There is no direct access to the settings in BotBase at the moment.
This property will be set when calling the Start method for the bot and is the same for all bots in the same application.
2021-03-14 21:55:07 +03:00
Xilosof
61e3652edf
Add MaxNumberOfRetries setting.
...
Indicates the maximum number of times a request that received error 429 will be sent again after a timeout until it receives code 200 or an error code not equal to 429.
2021-03-14 21:43:07 +03:00
FlorianDahn
181902336c
Adding ChannelCreated messagetype to GroupForm
2021-03-14 16:51:25 +01:00
FlorianDahn
dc364b5fd3
Fix for Cleanup method
...
- there was an collection changed exception which blocked the method from working
2021-03-04 15:17:06 +01:00
FlorianDahn
1fd4752c0e
Slash fix
2021-03-02 15:25:35 +01:00
FlorianDahn
d84be50243
Adding AutoCleanForm Fix for TaggedButtonGrid
2021-03-02 15:19:28 +01:00
FlorianDahn
1caa71cd25
Update to fix some bad behaviour with combination of AutoCleanForm
2021-03-01 22:53:32 +01:00
FlorianDahn
e81e5f1854
Bot command extensions for default commands
2021-03-01 22:53:03 +01:00
FlorianDahn
399e056a8f
Deleting messages update
...
- new constant for how much message deletions per second
- updating AutoCleanForm "Cleanup" process to use constant and using MessageDeleted eventhandler
2021-03-01 22:52:45 +01:00
FlorianDahn
26c4f479fa
New internal MessageDeleted event handler for better control and form use.
2021-03-01 22:50:42 +01:00
FlorianDahn
72d94df907
FIX: new message loop will now correctly manage events and form switches
2021-03-01 22:14:36 +01:00
FlorianDahn
31e0683699
FIX: for using ButtonGrid within AutoCleanForm can cause to no message
2021-03-01 22:13:40 +01:00
FlorianDahn
5b67f334ff
MultiToggleButton minor updates
...
- updating localization
- adding AllowEmptySelection property
- updating test project
2021-03-01 01:48:17 +01:00
FlorianDahn
6a556af070
New control: MultiToggleButton
...
- new control for having multiple simple toggle options
2021-03-01 01:36:07 +01:00
FlorianDahn
42b624c28f
Fix for MessageType use when no Message is available
2021-02-28 18:22:08 +01:00
FlorianDahn
75013d51bd
Remove old comments
2021-02-28 17:47:52 +01:00