Skip to content

Instantly share code, notes, and snippets.

@fonov
Created January 7, 2017 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fonov/361a9ce213b73cf5af943359866261ba to your computer and use it in GitHub Desktop.
Save fonov/361a9ce213b73cf5af943359866261ba to your computer and use it in GitHub Desktop.
Формирование ссылки для авторизации
echo 'https://telegram.me/vkfollowersbot?start='.substr(sh1($_REQUEST['viewer_id'] . 'fonov'), 6).$_REQUEST['viewer_id']
Что мы делаем?
Берем vk id как СТРОКУ!!! и прибавляем к ней 'fonov'
ХЭШ от строки, первые 6 символов
И прибовляем к ней ид вк.
Ссылка Аркадия
https://telegram.me/vkfollowersbot?start=366717170147312
ID VK - 170147312
SH1 hash - 366717
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment