From 04a7958c2178cf683c82343bd6f2fd153fe9fc50 Mon Sep 17 00:00:00 2001 From: Bekket Date: Sun, 18 Dec 2022 01:51:31 +0400 Subject: [PATCH] fixed URI --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 1a5e5e4..1b75c1e 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,7 @@ import ( "math/big" "net/http" "strconv" + "strings" "os" @@ -288,9 +289,11 @@ func main() { // remove file locally after upload deleteFile(file_name) + uri_short := strings.Split(telegraph_link,"/") + // create link to mint NFT - createLink(userDatabase[update.Message.From.ID].tgid,file_name,baseURL) + createLink(userDatabase[update.Message.From.ID].tgid,uri_short[2],baseURL) subscription, err := SubscribeForCreateItem(session_single_nft, ch) // this is subscription to UNINDEXED event. if err != nil {