Hello , can someone explain how local bot api works

.. does it require a custom tg client ? to be used by bot users ?

16 ответов

6 просмотров

no, it doesn't need anything from users

The local bot api is basically a custom tg client that hosts the http API locally.

𝘼𝙗𝙙𝙤-🧢 Автор вопроса
dotvhs
no, it doesn't need anything from users

this is lil confusing , ain't we supposed to send request to an official tg server ... then that server will send that update to all it's cllient ( ei : my account ) , ... well is my local bot api supposed to get updates from all tg users also ?

Яico X
The local bot api is basically a custom tg client ...

It's the same piece of software that Telegram uses for the public http api

𝘼𝙗𝙙𝙤 🧢
this is lil confusing , ain't we supposed to send...

it will send requests to tg server in the end anyway

𝘼𝙗𝙙𝙤 🧢
this is lil confusing , ain't we supposed to send...

https://github.com/tdlib/telegram-bot-api/issues/2#issuecomment-722388026

𝘼𝙗𝙙𝙤-🧢 Автор вопроса
dotvhs
it will send requests to tg server in the end anyw...

so api.telegram.org was a medium between tg server and tg bots right ?

𝘼𝙗𝙙𝙤-🧢 Автор вопроса
Яico X
Yes

Thanks very much !!

𝘼𝙗𝙙𝙤-🧢 Автор вопроса
Яico X
Yes

Why a medium betwenn two application is needed 😅 , why not just send directly to it ?

𝘼𝙗𝙙𝙤 🧢
Why a medium betwenn two application is needed 😅 ,...

Because that "medium" is what makes your account different from a bot account.

𝘼𝙗𝙙𝙤 🧢
Why a medium betwenn two application is needed 😅 ,...

Technically, you can. But working with JSON and API endpoints is much easier than with TypeLanguage requests

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

Обсуждают сегодня

Эх кто-то пришел и весь праздник испортил :( You need complex FBX scene importing setup to change things on import? good luck with that. You need navigation and pathfinding? g...
Serg Gini
5
День добрый. Стандартная библиотека phobos (std.array) ссылается на внешнюю фунцию _d_newarrayUTrace и при сборке с ключом profile-gc эта ссылка остаётся неопределённой. Никак...
slacker linuxoid
5
на D можно построить абсолютно разный архитект, как объектный, так и нет, оч широкий простор для принятия решений. Однако проблема в том, что большинство книг об айтишной архи...
Constantin_FV
1
Доброго времени суток. Сейчас я работаю над своей архитектурой Component / Systems. Если просто, это то что использовали до дробления на ECS. Потому что ECS это все таки нишев...
Vi
26
а у нас кто-нибудь разбирается в матлаб? Накопал статью по замощению Фодерберга, о нём вообще мало инфы в сети. Но там матлабовский код, который нужно через песочницу по сути ...
Constantin_FV
1
ну кстати в ноду 22 завезли движок 12.4 с WasmGC. А как у нас дела с wasm, мб в дискорде что-то кто-то писал-отвечал? Из BetterC, конечно, тоже можно выжать что-нибудь, но хот...
Constantin_FV
1
Для меня наследование это просто удобство ради удобства. Без множественного наследования, это бесполезная вещь, но удобная. С множественным наследованием, это опасная, но мощн...
Vi
1
string xczhojoxueaflfhhygcc ="xczhojoxueaflfhhygcc"; long xczhojoxueaflfhhygcc_2 =1368962155; import std.conv: text; writeln(text(xczhojoxueaflfhhygcc, " ", xczhojoxueaflfhhyg...
Constantin_FV
6
а что на D можно делать под 3й Godot ?
Dmitry Ponyatov
3
А кто-нибудь встречал в пакетах\графических движках генерацию мозаик, Пенроуз и т.п.? На гитхабе вижу около сотни репов, ток по Пенроузу + разбросаны сниппеты по сети, но мб г...
Constantin_FV
3
Карта сайта