Português
Abrir no Telegram
>>>> telegram.Bot()

>>> telegram.Bot()

@pythontelegrambotgroup · grupo · Tecnologia · indexada desde 2026-04-17
9 911membros−9 em uma semana
60escrevendo em 30 dias
288mensagens em 30 dias
627 174mensagens no índice
N
For the Audio File, duration (:obj:`int` | :class:`datetime.timedelta`): Duration of the audio in seconds as defined by the sender. .. versionchanged:: v22.2 |time-period-input| See this why the duration is here as datetime.timedelta as tg bot api say the duraiton is integer only?
  1. P
    Because this is the correct python native way to express a duration
Tópico inteiro · 3 respostas →
N
You can opt-in early by setting PTB_TIMEDELTA=true or PTB_TIMEDELTA=1 as an environment variable what does otp-in means? so later version audioobj.duration will not give me int value 😭😭😭 Now i am using the integer value to custom minute and second of the audio, how then i will do in future 😢, why PTB is forcing to remove the int?
  1. P
    Because timedelta is more native. What do you mean with custom minute and second?
    1. N
      see i have this, which format the i t to what to shows to user,as later int will remove so what will the way to design this type of sting from the timedelta?
            1. T
              So ur saying there’s no special handling needed here and the low level request layer already takes care of response deserialization and API errors?
  2. E
    You can just call total_seconds() and your previous code will work as is without any change.
Tópico inteiro · 9 respostas →
N
def format_duration(duration: int) -> str: """Format audio duration as HH:MM:SS.""" hours, remainder = divmod(duration, 3600) minutes, seconds = divmod(remainder, 60) if hours: return f"{hours:02}:{minutes:02}:{seconds:02}" return f"{minutes:02}:{seconds:02}"
T
Technical question about this fix 👀 If PTB 22.8 doesn’t expose "get_forum_topic_list()" as a "Bot" method then how exactly are u calling the underlying Bot API endpoint through the low level request layer? And how are u handling response deserialization Telegram API errors and compatibility with newer PTB versions that might introduce a native wrapper later? Also what happens if the API response structure changes or the request fails halfway through topic discovery Could the fallback silently swallow the actual error again?
  1. N
    Link
    clique para mostrar
    1) https://github.com/python-telegram-bot/python-telegram-bot/wiki/Bot-API-Forward-Compatibility#new-methods 2) https://github.com/python-telegram-bot/python-telegram-bot/wiki/Bot-API-Forward-Compatibility#receiving-objects 3) If Telegram removes the API method, the request will start failing after the API rolls out. If Telegram modifies the response, objects already implemented in PTB will retain the modified fields in api_kwargs, objects not implemented in PTB will simply have a different JSON entirely
Tópico inteiro · 1 resposta →
R
Hello there, Jhon Wick (Snap Traffic Solutions). You are writing your job offer in our technical focused groups, which is against our rules. To find a bot developer, please look at agencies dedicated towards freelancers. An example of those would be https://fiverr.com, which we are not associated with.
N
Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files » say i have only 1024*1024 image, i want to send this as thumbnail for send_audio, what will my choice to do? i will simpley use pass the image as pathlib.Path obj
N
Hey guys! I'm new here I would like to make a bot is there any open free source to learn how to make bot from scratch? And I want to make one with AI powerd
N
See i have a lit of user_id whom i want to block from my bot, whatever response they send to the bot any command or any file or any message i want to send them a custom reply with informaiton why they are banned how to unban them by themself. so i want this pls say a way how i will achieve this easily rather than using a custom fun login in all the function?
  1. N
    Wiki of python-telegram-bot - Category Design Pattern How do I limit who can use my bot?
Tópico inteiro · 1 resposta →
Arquivo por mês
outubro de 2026setembro de 2026agosto de 2026julho de 2026junho de 2026maio de 2026abril de 2026março de 2026fevereiro de 2026janeiro de 2026dezembro de 2025novembro de 2025outubro de 2025setembro de 2025agosto de 2025julho de 2025junho de 2025maio de 2025abril de 2025março de 2025fevereiro de 2025janeiro de 2025dezembro de 2024novembro de 2024outubro de 2024setembro de 2024agosto de 2024julho de 2024junho de 2024maio de 2024abril de 2024março de 2024fevereiro de 2024janeiro de 2024dezembro de 2023novembro de 2023outubro de 2023setembro de 2023agosto de 2023julho de 2023junho de 2023maio de 2023abril de 2023março de 2023fevereiro de 2023janeiro de 2023dezembro de 2022novembro de 2022outubro de 2022setembro de 2022agosto de 2022julho de 2022junho de 2022maio de 2022abril de 2022março de 2022fevereiro de 2022janeiro de 2022dezembro de 2021novembro de 2021outubro de 2021setembro de 2021agosto de 2021julho de 2021junho de 2021maio de 2021abril de 2021março de 2021fevereiro de 2021janeiro de 2021dezembro de 2020novembro de 2020outubro de 2020setembro de 2020agosto de 2020julho de 2020junho de 2020maio de 2020abril de 2020março de 2020fevereiro de 2020janeiro de 2020dezembro de 2019novembro de 2019outubro de 2019setembro de 2019agosto de 2019julho de 2019junho de 2019maio de 2019abril de 2019março de 2019fevereiro de 2019janeiro de 2019dezembro de 2018novembro de 2018outubro de 2018setembro de 2018agosto de 2018julho de 2018junho de 2018maio de 2018abril de 2018março de 2018fevereiro de 2018janeiro de 2018dezembro de 2017novembro de 2017outubro de 2017setembro de 2017agosto de 2017julho de 2017junho de 2017maio de 2017abril de 2017março de 2017fevereiro de 2017janeiro de 2017dezembro de 2016novembro de 2016outubro de 2016setembro de 2016agosto de 2016julho de 2016junho de 2016maio de 2016abril de 2016março de 2016

Um feed público aberto do índice de busca ChatCrawler — “o Google do Telegram público”; atualizado à medida que a comunidade é rastreada. Horários em UTC.

Somente conteúdo público, API oficial do Telegram. Sobre · Perguntas frequentes · Limites do índice · Remover uma página · Catálogo · Busca · Como calculamos