Skip to content

Cyrillic file name #46

@Shlepok

Description

@Shlepok

Hello!
When I try to send a file with cyrillic characters in name to telegram

$botToken = "xxxx"
$chat = "xxxx"
$file = "C:\абв г.txt"
$sendTelegramLocalDocumentSplat = @{
    BotToken            = $botToken
    ChatID              = $chat
    File                = $file
    Caption             = "Check out this file"
    ParseMode           = 'MarkdownV2'
    DisableNotification = $true
    Verbose             = $true
}
Send-TelegramLocalDocument @sendTelegramLocalDocumentSplat

I get the file with this name

= utf-8 B 0LDQsdCyINCzLnR4dA== =

There are no such problems with names in English or numbers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions