Skip to content

Instantly share code, notes, and snippets.

timeout 10 && calc
@CsgoBotTG
CsgoBotTG / getpastebin.cpp
Created February 13, 2025 08:25
get pastebin raw via wininet
#ifdef _WIN32
#include "getpastebin.h"
std::wstring CharPToWstring(const char* _charP)
{
return std::wstring(_charP, _charP + strlen(_charP));
}
std::wstring GetPastebin(HINTERNET& hInternet, HINTERNET& hConnect, const LPCWSTR& raw_url)
@CsgoBotTG
CsgoBotTG / tgsend.cpp
Last active February 12, 2025 18:08
telegram bot send messages and files via WinHTTP
#ifdef _WIN32
#include "tgsend.h"
// Ôóíêöèÿ äëÿ êîäèðîâàíèÿ ñòðîêè â URL-ôîðìàò
int chr_isvalid(uint32_t c)
{
if (c <= 0x7F) return 1;
if (0xC080 == c) return 1; // Accept 0xC080 as representation for '\0'
if (0xC280 <= c && c <= 0xDFBF) return ((c & 0xE0C0) == 0xC080);