diff --git a/telegram/utils.go b/telegram/utils.go index 00bf93f..910bfd6 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -486,6 +486,9 @@ func (c *Client) messageToText(message *client.Message) string { contact.Contact.Vcard, jid, ) + case client.TypeMessageDice: + dice, _ := message.Content.(*client.MessageDice) + return fmt.Sprintf("%s 1d6: [%v]", dice.Emoji, dice.Value) } return fmt.Sprintf("unknown message (%s)", message.Content.MessageContentType())