Fix parsing messages without reactions
This commit is contained in:
parent
9bab0102e8
commit
57a2f8720b
|
@ -450,7 +450,7 @@ namespace tgcli {
|
|||
|
||||
var rest = $"{text}{(msg.EditDate == 0 ? "" : $"{Ansi.Yellow}*")}";
|
||||
|
||||
if (msg.InteractionInfo.Reactions.Any(p => p.Type is ReactionType.ReactionTypeEmoji)) {
|
||||
if (msg.InteractionInfo != null && msg.InteractionInfo.Reactions.Any(p => p.Type is ReactionType.ReactionTypeEmoji)) {
|
||||
rest = $"{rest} {Ansi.Cyan}<--";
|
||||
foreach (var reaction in msg.InteractionInfo.Reactions)
|
||||
if (reaction.Type is ReactionType.ReactionTypeEmoji emoji)
|
||||
|
|
Loading…
Reference in a new issue