mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-06 06:53:47 +00:00
updated ReadMe
This commit is contained in:
parent
6e4b90710a
commit
9cc164b9ec
2 changed files with 3 additions and 2 deletions
|
|
@ -1168,7 +1168,7 @@ namespace WTelegram
|
|||
public Task<Message> SendMediaAsync(InputPeer peer, string caption, InputFileBase mediaFile, string mimeType = null, int reply_to_msg_id = 0, MessageEntity[] entities = null, DateTime schedule_date = default)
|
||||
{
|
||||
var filename = mediaFile is InputFile iFile ? iFile.name : (mediaFile as InputFileBig)?.name;
|
||||
mimeType ??= Path.GetExtension(filename).ToLowerInvariant() switch
|
||||
mimeType ??= Path.GetExtension(filename)?.ToLowerInvariant() switch
|
||||
{
|
||||
".jpg" or ".jpeg" or ".png" or ".bmp" => "photo",
|
||||
".gif" => "image/gif",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue