Commit 4fd195d
committed
fix(telegram): defaultDocumentHandler MEDIA format — remove leaked filename
The format 'MEDIA:document:path:fileName' had 3 colon-separated parts,
but sendMedia only parses 2 (type:path). The fileName leaked into the
path, causing os.Stat to fail. Fixed to clean 'MEDIA:document:path'.
Telegram's sendDocument gets the filename from the file itself.1 parent a13b172 commit 4fd195d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments