From c0dbf471b41002c93ff85887ee56020145f29106 Mon Sep 17 00:00:00 2001 From: Trumeet Date: Fri, 12 Mar 2021 22:01:18 -0800 Subject: fix: photo size is incorrect --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index d130318..7ea0319 100644 --- a/main.c +++ b/main.c @@ -157,9 +157,9 @@ run: else if(tgmsg->photo_length > 0) { if(tgmsg->caption == NULL) - sprintf(msg, "(%d photo%s)", tgmsg->photo_length, tgmsg->photo_length > 1 ? "s" : ""); + sprintf(msg, "(Photo)"); else - sprintf(msg, "%s (%d photo%s)", tgmsg->caption, tgmsg->photo_length, tgmsg->photo_length > 1 ? "s" : ""); + sprintf(msg, "%s (Photo)", tgmsg->caption); } char *cmd = NULL; -- cgit v1.2.3