tginfo / telegram-limits Goto Github PK
View Code? Open in Web Editor NEWThis project describes Telegram limitations
Home Page: https://limits.tginfo.me/
License: MIT License
This project describes Telegram limitations
Home Page: https://limits.tginfo.me/
License: MIT License
I'm pretty sure u know that already,but 30 messages a second is incorrect. It's 1 message every second to chats (groups/users/channels) with the groups and channels having additional limits on top. But the 30req/s are definitely wrong and not defined by telegram. https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this
Also only getMe and getUpdates aren't rate limited. All other requests are.
Hello the site doesn't mention the scope of these limits.
Are these absolute limits for any bot (API id, hash pair)?
Or are these daily (24 hours), or weekly?
Specifically for invite to channel, can I invite 200 users max to a channel with my bot or is this reset after some time so that I can start inviting users again?
It's written 1280px
Where it should be 2560px
Source : https://t.me/tginfoen/1589
Add data for Telegram Premium users along with Telegram free.
Written : up to 2000 MB
What should be written : up to 4000 MB
max normal keyboard button : 300
max normal keyboard row : 300
max normal keyboard button per row : 12
max inline keyboard button : 100
max inline keyboard row : 100
max inline keyboard button per row : 8
yesterday i have changed my birthday 3 times, and then it didn't let me to change it again. and today i still have no ability to do this. i will report later how long approximately this limit is
Telegram also has limit on photo's resolution. If you upload an image as Photo not document and it had over 1280p on height, Telegram resize and scale the photo in 1280 pixel.
Step to reproduce
download this poster: https://m.media-amazon.com/images/M/MV5BZjdkOTU3MDktN2IxOS00OGEyLWFmMjktY2FiMmZkNWIyODZiXkEyXkFqcGdeQXVyMTMxODk2OTU@._V1_.jpg
(which has 2430 x 3600p)
then upload it as normal Photo in telegram
download the uploaded photo from telegram
As you can see telegram scaled it down to 1280p
You should set minimal Command description length to 3 instead of 2.
BadRequest: Command description length must be at least 3
Telegram reverted back media caption message limits from 4096 to 1024
there's a limit on number of emojis which can be used in a single message and are rendered by tg - exceeding that, the emoji rendering falls back to system emoji.
The limit was about 50 emojis per message, but i am not sure.
i am not even sure if this applies only to tgand or applies to other official clients too
Here you said 50 is the limit for animated packs, but then why this pack has 236 stickers?
https://t.me/addstickers/AnimatedEmojies
На сайте написано:
Это не совсем так. Два примера:
https://telegra.ph/aa-08-07-7 (65 507 символов "f" + заголовок из двух английских "a")
https://telegra.ph/aa-08-07-8 (32 753 символа "ф" + заголовок из двух английских "a")
Умножая 32 753 на 2, получаем 65 506, из чего можно сделать вывод, что лимит по тексту высчитывается не в количестве символов, а в килобайтах (кириллические символы занимают по два байта, в то время как латинские – по одному).
Итоговый лимит приблизительно равен 64 кибибайтам, а разница между 65507 и 65536 – метаданные, которые хранятся вместе с текстом.
Currently:
only 30 first participants can cast and see videos of each other, all the later ones will be in a voice-only chat
Improved:
Up to 30 participants can broadcast, up to 1000 participants can watch, and an unlimited number of participants can listen
View the change notes from Telegram
Source: https://telegram.org/blog/video-1000
Translation for Uzbek is done and it's ready to be launched on the language list
I would add limits for displaying group and channel statistics.
Now 500 users.
Now instead of pull requests we prefer using Crowdin
Check out for details: https://github.com/tginfo/Telegram-Limits#add-new-language
I'm sure there is a limit for upload and download in telegram.
chat id (groups and channels) is a negative 64-bit number
user id is a positive 64-bit number
Add accounts that can be managed by the app:
Accounts
up to 3
On markup json len > 10kB:
BadRequest: Reply markup is too long
import asyncio
import logging
from aiogram import Bot
from aiogram.types import InlineKeyboardButton, InlineKeyboardMarkup
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
API_TOKEN = '1234567890:YourBotToken'
RECIPIENT_ID = 66812456 # your user_id
TEN = "1234567890"
MULTIPLIER = 6
async def main():
bot = Bot(token=API_TOKEN)
await bot.send_message(RECIPIENT_ID, "1", reply_markup=_prepare_markup())
await _close_bot(bot)
def _prepare_markup() -> InlineKeyboardMarkup:
"""Prepare long markup."""
markup = InlineKeyboardMarkup()
buttons = [InlineKeyboardButton(TEN * MULTIPLIER, callback_data=TEN) for _ in range(100)]
markup.add(*buttons)
logger.info("Markup len: %s", len(markup.as_json()))
return markup
async def _close_bot(bot: Bot):
session = await bot.get_session()
await session.close()
if __name__ == '__main__':
asyncio.run(main())
As written in the title, the captions for premium users can contain up to 2048 characters, not 2024!
Telegram-Limits/localization/en/data.json
Line 273 in 46c1e03
Your website tells at least 500 participants
But in facts, I have a channel, and I were able to see the stats since I got 75 members
(still need to confirm this)
Valid limit is 50 (source)
telegram has length limit on filename which is 60, for example upload a text file with more than 65 characters on the filename, telegram will trim the last 5 characters
I make a userbot that can change profile pictures on telegram but i don't know how long the limit sometime I got limited from telegram said FLOOD_WAIT_X
The character limit for a sticker id in a t.me/addstickers/(...) link is 62 characters
Links in bio are clickable for Premium users while they are just plain text for non-Premium users
Add Max inline results per request = 50 inline result
, Under Bots category.
I think its about 20
You can only attempt to join 5 groups, no matter whether the request is granted denied or ignored, it seems to limit you for around 15 minutes.
From my tests occuring lately, we can roughly send/forward 2k -> 2.3k messages in a row and then getting a ~50 min timeout
No information on how many times before having Spam Bot taking actions
This data was collected among hours of forwarding tests over a 5 days span.
I thought that Premium didn't change a thing, tho recently I successfully achieved forwarding 3300 messages and then getting a floodwait error of 2983 seconds (~50 min). Weird as previous tests were also done using a Premium account
So the data may not be 100% reliable.
In the end, don't risk your account on this :)
I wrote to SpamBot as soon as I noticed I cannot write non-contacts and in public groups, it was 19:34 UTC+5 (on screenshot)
I don't know if this is still relevant, 5.5 years has passed since that ban.
If this can be confirmed not only by me, you can change this line to "1 day or more"
.
Telegram-Limits/localization/en/data.json
Line 33 in 8bd46e1
I suggest this change:
Video-avatar duration
up to 10 seconds
into
Video-avatar (for chats profile and channels)
up to 10 seconds, 800x800, max 2Mb
My bot yesterday hit a FloodWait limit solely for the sendContact method (70K+ seconds).
All other methods are working normally.
All stickers inside one pack must have the same FPS (either 30 or 60).
I found out the exact filesizelimit is 2097152000
Bytes (so its 2000 MiB, not 2GB or 2GiB).
Asuming the number used in tdlib is the same as the serverside limit.
This is my source:
An error is thrown when the file is bigger than MAX_FILE_SIZE
: https://github.com/tdlib/td/blob/master/td/telegram/files/FileManager.cpp#L1007
which is defined here: https://github.com/tdlib/td/blob/master/td/telegram/files/FileManager.cpp#L56
I tested it by uploading a file exactly 2097152000
Bytes in size (worked)
and uploading a file exactly 2097152001
Bytes in size (failed).
It would be nice to have this exact limit listed on the Website. Maybe as mouseover-tooltip?
Same applies for the bot-api limits.
The text "up to 2000 MB" is not correct. it would need to be "up to 2000 MiB"
BTW: the other limits are listed in that file as well:
https://github.com/tdlib/td/blob/master/td/telegram/files/FileManager.cpp#L953-L955
That's real because my BotFather says this:
Sorry, you can't add more than 40 bots. To create a new bot, delete one of your bots or transfer ownership of one of your bots to a different person.
Did you notice the "40 bots" part? That's the limit for Premium users.
Test done - upload
aaaaaaaaaaaaaaaaaaabbbbbbbbbbcccccccccccccccddddddddddddddddeeeeeeeeeeeeeeeeffffffffffffffffggggggggggggghhhhhhhhhhhhhhiiiiiiiiiiiiijjjjjjjjj.jpg
restart client, see it got renamed to
aaaaaaaaaaaaaaaaaaabbbbbbbbbbcccccccccccccccddddddddddddddddeee.jpg
Send the same again but with .jpeg, it gets renamed to
aaaaaaaaaaaaaaaaaaabbbbbbbbbbcccccccccccccccddddddddddddddddeee.jpeg
Therefore the limit is 63, and extension size is ignored as long as it is proper (otherwise TG drops extension)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.