Skip to content

Commit

Permalink
Small additions based on tests from different groups
Browse files Browse the repository at this point in the history
  • Loading branch information
kant2002 committed Nov 26, 2024
1 parent fedf524 commit a29e473
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,26 @@ Possible text entry types:
- bank_card
- blockquote
- bold
- bot_command
- cashtag
- code
- custom_emoji
- email
- hashtag
- italic
- link
- mention
- mention_name
- phone
- plain
- pre
- spoiler
- strikethrough
- text_link
- underline

Possible reaction types:
- custom_emoji
- emoji
- paid

2 changes: 1 addition & 1 deletion TelegramExportProcessor.Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
FindMentions(messages, "із рук");
void FindAllLinks(IEnumerable<ChatMessage> entities)
{
foreach (var entryType in messages.SelectMany(_ => _.TextEntities.Where(_ => _.Type is "link" or "text_link").Select(_ => _.Href ?? _.Text)).Distinct())
foreach (var entryType in messages.SelectMany(_ => _.TextEntities.Where(_ => _.Type is "link" or "text_link").Select(_ => _.Href ?? _.Text)).Distinct().Order())
{
Console.WriteLine($"Links: {entryType}");
}
Expand Down

0 comments on commit a29e473

Please sign in to comment.