We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b25b8c commit 98fbe39Copy full SHA for 98fbe39
packages/client-telegram/src/messageManager.ts
@@ -684,7 +684,9 @@ export class MessageManager {
684
): Promise<Message.TextMessage[]> {
685
if (content.attachments && content.attachments.length > 0) {
686
content.attachments.map(async (attachment: Media) => {
687
- this.sendImage(ctx, attachment.url, attachment.description);
+ if (attachment.contentType.startsWith("image")) {
688
+ this.sendImage(ctx, attachment.url, attachment.description);
689
+ }
690
});
691
} else {
692
const chunks = this.splitMessage(content.text);
0 commit comments