Русский
Открыть в Telegram
>>>> telegram.Bot()

>>> telegram.Bot()

@pythontelegrambotgroup · группа · Технологии · в индексе с 2026-04-17
9 911участников−10 за неделю
61пишущих за 30 дней
295сообщений за 30 дней
627 174сообщений в индексе
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
Вся ветка · 3 ответа →
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.
Вся ветка · 9 ответов →
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
    Ссылка
    нажмите — покажем
    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
Вся ветка · 1 ответ →
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?
Вся ветка · 1 ответ →
Архив по месяцам
октябрь 2026сентябрь 2026август 2026июль 2026июнь 2026май 2026апрель 2026март 2026февраль 2026январь 2026декабрь 2025ноябрь 2025октябрь 2025сентябрь 2025август 2025июль 2025июнь 2025май 2025апрель 2025март 2025февраль 2025январь 2025декабрь 2024ноябрь 2024октябрь 2024сентябрь 2024август 2024июль 2024июнь 2024май 2024апрель 2024март 2024февраль 2024январь 2024декабрь 2023ноябрь 2023октябрь 2023сентябрь 2023август 2023июль 2023июнь 2023май 2023апрель 2023март 2023февраль 2023январь 2023декабрь 2022ноябрь 2022октябрь 2022сентябрь 2022август 2022июль 2022июнь 2022май 2022апрель 2022март 2022февраль 2022январь 2022декабрь 2021ноябрь 2021октябрь 2021сентябрь 2021август 2021июль 2021июнь 2021май 2021апрель 2021март 2021февраль 2021январь 2021декабрь 2020ноябрь 2020октябрь 2020сентябрь 2020август 2020июль 2020июнь 2020май 2020апрель 2020март 2020февраль 2020январь 2020декабрь 2019ноябрь 2019октябрь 2019сентябрь 2019август 2019июль 2019июнь 2019май 2019апрель 2019март 2019февраль 2019январь 2019декабрь 2018ноябрь 2018октябрь 2018сентябрь 2018август 2018июль 2018июнь 2018май 2018апрель 2018март 2018февраль 2018январь 2018декабрь 2017ноябрь 2017октябрь 2017сентябрь 2017август 2017июль 2017июнь 2017май 2017апрель 2017март 2017февраль 2017январь 2017декабрь 2016ноябрь 2016октябрь 2016сентябрь 2016август 2016июль 2016июнь 2016май 2016апрель 2016март 2016

Открытая публичная лента из поискового индекса ChatCrawler — «Google по публичному Telegram»; обновляется по мере обхода площадки. Время — UTC.

Только публичный контент, официальный API Telegram. О проекте · Вопросы · Границы индекса · Убрать страницу из выдачи · Каталог · Поиск · Как мы считаем