From 9d8f162f4159f00cbda1cc2c6b103d69aff9bd3f Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 22 Aug 2024 18:26:08 +0300 Subject: [PATCH] chatinfo: override name for saved messages --- pkg/connector/chatinfo.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/connector/chatinfo.go b/pkg/connector/chatinfo.go index 98515a17..dac74eb9 100644 --- a/pkg/connector/chatinfo.go +++ b/pkg/connector/chatinfo.go @@ -51,6 +51,10 @@ func (t *TelegramClient) getDMChatInfo(ctx context.Context, userID int64) (*brid t.userID: {EventSender: t.mySender()}, } } + if userID == t.telegramUserID { + // TODO also hardcode the avatar used by telegram? + chatInfo.Name = ptr.Ptr("Saved Messages") + } return &chatInfo, nil }