mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-05-07 04:36:40 +07:00
made plaintext posts
This commit is contained in:
parent
26fea2541e
commit
ba2832ca34
7 changed files with 67 additions and 30 deletions
src/utils
9
src/utils/attachment.ts
Normal file
9
src/utils/attachment.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { PhotoAttachment } from "vk-io";
|
||||
|
||||
export const getAttachment = (img: PhotoAttachment): string | undefined => {
|
||||
try {
|
||||
return img.mediumSizeUrl;
|
||||
} catch (e) {
|
||||
return undefined;
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue