Italiano
Apri in Telegram
>>>> telegram.Bot()

>>> telegram.Bot()

@pythontelegrambotgroup · gruppo · Tecnologia · indicizzata dal 2026-04-17
9 911membri−10 in una settimana
61scrivono in 30 giorni
295messaggi in 30 giorni
627 174messaggi nell'indice
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
Intera conversazione · 3 risposte →
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.
Intera conversazione · 9 risposte →
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
    tocca per mostrare
    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
Intera conversazione · 1 risposta →
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?
Intera conversazione · 1 risposta →
Archivio per mese
ottobre 2026settembre 2026agosto 2026luglio 2026giugno 2026maggio 2026aprile 2026marzo 2026febbraio 2026gennaio 2026dicembre 2025novembre 2025ottobre 2025settembre 2025agosto 2025luglio 2025giugno 2025maggio 2025aprile 2025marzo 2025febbraio 2025gennaio 2025dicembre 2024novembre 2024ottobre 2024settembre 2024agosto 2024luglio 2024giugno 2024maggio 2024aprile 2024marzo 2024febbraio 2024gennaio 2024dicembre 2023novembre 2023ottobre 2023settembre 2023agosto 2023luglio 2023giugno 2023maggio 2023aprile 2023marzo 2023febbraio 2023gennaio 2023dicembre 2022novembre 2022ottobre 2022settembre 2022agosto 2022luglio 2022giugno 2022maggio 2022aprile 2022marzo 2022febbraio 2022gennaio 2022dicembre 2021novembre 2021ottobre 2021settembre 2021agosto 2021luglio 2021giugno 2021maggio 2021aprile 2021marzo 2021febbraio 2021gennaio 2021dicembre 2020novembre 2020ottobre 2020settembre 2020agosto 2020luglio 2020giugno 2020maggio 2020aprile 2020marzo 2020febbraio 2020gennaio 2020dicembre 2019novembre 2019ottobre 2019settembre 2019agosto 2019luglio 2019giugno 2019maggio 2019aprile 2019marzo 2019febbraio 2019gennaio 2019dicembre 2018novembre 2018ottobre 2018settembre 2018agosto 2018luglio 2018giugno 2018maggio 2018aprile 2018marzo 2018febbraio 2018gennaio 2018dicembre 2017novembre 2017ottobre 2017settembre 2017agosto 2017luglio 2017giugno 2017maggio 2017aprile 2017marzo 2017febbraio 2017gennaio 2017dicembre 2016novembre 2016ottobre 2016settembre 2016agosto 2016luglio 2016giugno 2016maggio 2016aprile 2016marzo 2016

Un feed pubblico aperto dall'indice di ricerca ChatCrawler — «Google per il Telegram pubblico»; si aggiorna man mano che la community viene scansionata. Orari in UTC.

Solo contenuti pubblici, API ufficiale di Telegram. Informazioni · FAQ · Limiti dell'indice · Rimuovi una pagina · Catalogo · Ricerca · Come calcoliamo