Skip to content

Instantly share code, notes, and snippets.

View altbodhi's full-sized avatar
🏠
Working from home

altbodhi

🏠
Working from home
View GitHub Profile
@altbodhi
altbodhi / TelegramWebApp.fsx
Created March 27, 2025 14:22
Check hash initData TelegramWebApp
module TelegramWebApp =
open System.Security.Cryptography
open System.Text
open System.Web
let validateInitData botToken (initData: string) =
let items =
initData.Split "&" |> Array.map (fun x -> let p = x.Split("=") in (p[0], p[1]))