That's a weird question
It's like asking "is it better to construct with bricks or with hands?" Well not THAT different but still. Mtproto is a protocol, webhook is a method to receive updates
I see, thank you
well anyway, if splitting question into two parts (mtproto or http and webhook or longpoll) - everything depends on your needs. Mtproto is a bit less limited. But its harder to work with and you will be able to trap yourself in some other limits that normally bot api handles. Using it and writing a bad quality code may also result into you getting banned (hehe) Https bot api is better in most cases. I usually use longpoll since I don't wanna open any endpoints for my bots, but there are cases when its horrible (like if you are making a bot constructor like @livegram or @manybot). Choose whatever you like here
Me still thinking how pyrogram Dev wrote the library without ban :(
mtproto is faster then https or webhook
Because without testing or getting error you can't come up with a good quality code
Disagree. Good quality nowadays depends on a code itself a lot. 100 if elses in a row is not a good code
by that I mean the code that flood the heck out of telegram
Means making continuous requests to api
kind of. Your function may just be not very optimal. Ofc i am not talking about just while(true) {flood()}
I can't come up with a good example right ahead. But lets just say that it takes 10 requests when it can take 7
So 3 requests took place because of error and telegram banned my api
So now I understand why mt-proto is so hard
if this function was called 2 times, its 6 already. Thats what i am trying to tell you. I am too lazy to write a giant post of why it may result into this
yesterday telegram started banning users for sending openmessage links. God knows why
A code become giants once you recieve and then you start adding one one conditions to make it error free
And what's the need of making a seperate mt-proto and bot api
Why can't bot api have all features like that of mt-proto
bot api is simplifying stuff, thats it
I don't understand telegram's logic
Atleast add bot to join vc and speak and allow 2gb upload and download
Thats not what bots are for
If you self host bot api server you can upload and download 2GB
even if you use mtproto bots cannot join vc.
Why should I self host when I can do it for free using mt-proto
because you wont dig into this stuff
because I that case you would use the mtproto implementation provided by Telegram.
Even I wanted a mt-proto lib but now after hearing this ban news who would even try
Good try I don't have multiple accounts to try
ive tried on 2 and never got ban ¯\_(ツ)_/¯
Обсуждают сегодня