func UploadFile(c *fiber.Ctx) error {
form, err := c.MultipartForm()
if err != nil {
log.Fatal(err)
}
files := form.File["file"]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just for test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const headers = { | |
Authorization: "$token", // replace your token here | |
} | |
async function delay(ms) { | |
return new Promise((reslove) => setTimeout(() => reslove(true), ms)) | |
} | |
async function getMissions() { | |
const res = await fetch("https://api-mission.goatsbot.xyz/missions/user", { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const token = "$token" // replace your token here | |
const headers = { | |
"Content-Type": "application/json", | |
Authorization: token, | |
} | |
async function delay(ms) { | |
return new Promise((reslove) => setTimeout(() => reslove(true), ms)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const el = document.createElement("iframe") | |
el.src = document.getElementsByTagName('iframe')[0].src.replace(/(tgWebAppPlatform=)[^&]+/, "$1android") | |
document.querySelector("iframe").remove() | |
el.height = "100%" | |
el.width = "100%" | |
document.querySelector(".web-app-body").appendChild(el) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const headers = { | |
authorization: "$token", | |
} | |
async function delay(ms) { | |
return new Promise((reslove) => setTimeout(() => reslove(true), ms)) | |
} | |
async function makeMoney() { | |
for (let i = 1; i <= 500; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const token = "" // put your token here | |
async function delay(ms: number) { | |
return new Promise((reslove) => setTimeout(() => reslove(true), ms)) | |
} | |
async function validateToken(token: string) { | |
const headers = { Authorization: token } | |
const res = await fetch(`https://major.bot/api/users/6946511911/`, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const token = "$token" // replace your token to $token | |
const headers = { | |
Authorization: token, | |
} | |
async function delay(ms) { | |
return new Promise((reslove) => setTimeout(() => reslove(true), ms)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const token = "$token" // replace your token here | |
const headers = { | |
Authorization: token, | |
} | |
async function delay(ms) { | |
return new Promise((reslove) => setTimeout(() => reslove(true), ms)) | |
} | |
async function makeMoney() { |