Skip to content

Instantly share code, notes, and snippets.

View PaulSonOfLars's full-sized avatar

Paul Larsen PaulSonOfLars

View GitHub Profile
@PaulSonOfLars
PaulSonOfLars / inlineQueryUnhash.go
Created December 24, 2021 09:56
Telegram Inline query unhasher
import (
"bytes"
"encoding/base64"
"encoding/binary"
"fmt"
"strconv"
)
func UnpackInlineMessageId(inlineMessageId string) (int64, int64, int64, int64, error) {
bs, err := base64.RawURLEncoding.DecodeString(inlineMessageId)
@PaulSonOfLars
PaulSonOfLars / bot-api-spec.md
Last active December 9, 2020 21:24
Telegram bot API docs scrape, 6 Dec 2020
@PaulSonOfLars
PaulSonOfLars / inviteLinkUnhash.go
Last active September 1, 2019 21:54
Simple telegram invite link unhasher, to retrieve the link creator and group id.
import (
"bytes"
"encoding/base64"
"encoding/binary"
"fmt"
)
// hash is the hash at the end of an invite link -> t.me/joinchat/<hash>
func unpack_invitehash(hash string) (int, int, error) {
fmt.Println("hash:", hash)