Skip to content

Commit 68954bf

Browse files
committed
fix: invalid telegram session store.
1 parent 3e43373 commit 68954bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/fetcher/telegram.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func newTelegramService(config *Config) (service, error) {
3232

3333
// Change the process file name.
3434
config.processFile = strings.ReplaceAll(channelID, "/", "_") + ".db"
35-
if len(config.Keywords) == 0 {
35+
if len(config.Keywords) != 0 {
3636
config.processFile = strconv.FormatInt(time.Now().Unix(), 10) + config.processFile
3737
}
3838

internal/file/writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (c *creator) NewWriter(id, total int64, name, subPath string, format Format
6262
// Escape the file name for avoiding the illegal characters.
6363
// Ref: https://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words
6464
filename = escape(filename)
65-
65+
6666
// Create the download path.
6767
downloadPath := c.downloadPath
6868
if subPath != "" {

0 commit comments

Comments
 (0)