1
0
Fork 0
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:
Fedor Katurov 2021-05-21 10:48:44 +07:00
parent 26fea2541e
commit ba2832ca34
7 changed files with 67 additions and 30 deletions
src/utils

9
src/utils/attachment.ts Normal file
View 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;
}
};