-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added sticker support for telegram bridge and downloading files suppo…
…rt for telegram bridge
- Loading branch information
Showing
16 changed files
with
133 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
Sources/Falko.Talkie.Bridges.Telegram/Models/DeleteMessage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
Sources/Falko.Talkie.Bridges.Telegram/Models/EditMessageText.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
Sources/Falko.Talkie.Bridges.Telegram/Models/MessageEntity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Talkie.Bridges.Telegram.Models; | ||
|
||
public class PhotoSize( | ||
string fileId, | ||
string fileUniqueId, | ||
int width, | ||
int height, | ||
long? fileSize = null | ||
) | ||
{ | ||
public readonly string FileId = fileId; | ||
|
||
public readonly string FileUniqueId = fileUniqueId; | ||
|
||
public readonly int Width = width; | ||
|
||
public readonly int Height = height; | ||
|
||
public readonly long? FileSize = fileSize; | ||
} |
6 changes: 4 additions & 2 deletions
6
Sources/Falko.Talkie.Bridges.Telegram/Models/ReplyParameters.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
namespace Talkie.Bridges.Telegram.Models; | ||
|
||
public sealed class Sticker | ||
( | ||
string fileId, | ||
string fileUniqueId, | ||
StickerType type, | ||
int width, | ||
int height, | ||
bool isAnimated, | ||
bool isVideo, | ||
PhotoSize? thumbnail = null, | ||
string? emoji = null, | ||
string? setName = null, | ||
string? customEmojiId = null, | ||
bool? needsRepainting = null, | ||
long? fileSize = null | ||
) : PhotoSize(fileId, fileUniqueId, width, height, fileSize) | ||
{ | ||
public readonly StickerType Type = type; | ||
|
||
public readonly bool IsAnimated = isAnimated; | ||
|
||
public readonly bool IsVideo = isVideo; | ||
|
||
public readonly PhotoSize? Thumbnail = thumbnail; | ||
|
||
public readonly string? Emoji = emoji; | ||
|
||
public readonly string? SetName = setName; | ||
|
||
public readonly string? CustomEmojiId = customEmojiId; | ||
|
||
public readonly bool? NeedsRepainting = needsRepainting; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Talkie.Bridges.Telegram.Models; | ||
|
||
public enum StickerType | ||
{ | ||
Regular, | ||
Mask, | ||
CustomEmoji | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters