I mean which ip you receive from telegram webhook call

back?

16 ответов

20 просмотров

I dont have one set up

91.108.6.117

Just setup a secret path to accept post requests in your server , where only telegram knows about it .. it will then be the only who can send you data ( legitmate data ) ... to increase security ... that's the ip adresses from tg which you allow post requests from https://core.telegram.org/bots/webhooks#the-short-version

𝘼𝙗𝙙𝙤 🧢
Just setup a secret path to accept post requests i...

Also you can provide secret_token in setWebhook since 6.1

𝘼𝙗𝙙𝙤 🧢
Just setup a secret path to accept post requests i...

You can also set an auth username:password and it will get used by Telegram Servers on a Auth http header and the secret_token added on the last update.

Poolitzer X
91.108.6.117

so thats also very much wrong, if I dont fully misunderstand IP ranges (rico back me up here, official subnet is 91.108.4.0/22), so I will ping the people on that in a bit

Fabian Pastor
You can also set an auth username:password and it ...

> You can also set an auth username:password What kind of black magic is that? xD

Poolitzer X
> You can also set an auth username:password What...

well you set this url on setWebhook https://user:pass@your.domain.com/a_random_token/ And on your server you'll receive a Basic Auth (if i remember right) header with a base64(user:pass) value.

Poolitzer X
so thats also very much wrong, if I dont fully mis...

What do you mean? Your IP above is in the /22 range!

Poolitzer X
so thats also very much wrong, if I dont fully mis...

If you need me to read your messages, @ me :D

Poolitzer X
didnt want to wake you

My phone is on mute 24/7. You literally can't wake me

Poolitzer X
ah, okay, so I was wrong, good

Yep, 91.108.4.1 - 91.108.7.254 are the ones expected on a 91.108.4.0/22 subnet

Похожие вопросы

Карта сайта