Skip to content

Conversation

@Muralidaran-22
Copy link

Added a Timestamp property to the BaseTelegram class to store the creation or processing time of the telegram. Updated the TelegramArgs constructor in TelegramParser.cs to set this Timestamp to the current date and time (DateTime.Now) when a new TelegramArgs instance is created. Removed an unnecessary space in the TelegramParser class before the type check for the telegram.

Added a Timestamp property to the BaseTelegram class to store the creation or processing time of the telegram. Updated the TelegramArgs constructor in TelegramParser.cs to set this Timestamp to the current date and time (DateTime.Now) when a new TelegramArgs instance is created. Removed an unnecessary space in the TelegramParser class before the type check for the telegram.
Copy link
Owner

@stprograms stprograms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all, thank you very much for your interest and contribution to the project. 😃

What do you think about having the Timestamp as a readonly property, which is set in the constructor of the BaseTelegram itself? I think this is better than setting it when an event is triggered.

@stprograms
Copy link
Owner

Since I did some changes in parallel to your submission which now led to conflicts in the file, I have implemented the TimeStamp in the BaseTelegram myself, including corresponding unit tests (see #28 ).
If you like, you can continue and take one of the sub-issues of #19 . Thanks again for your contribution

@stprograms stprograms closed this Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants