Русский
Открыть в Telegram
>>>> telegram.Bot() - Python general/Meta

>>> telegram.Bot() - Python general/Meta

@pythontelegrambottalk · группа · Технологии · в индексе с 2026-07-02
2 361участников
18пишущих за 30 дней
57сообщений за 30 дней
240 165сообщений в индексе
D
Стикер
AnimatedSticker.tgs · 19 КБ · нажмите — покажем
👍
D
Hi any admin here? Hope I’m not being a nuisance but could I ask a favor to delete all my messages in the two groups? It’s not easy for a non-admin person to delete their messages one by one in the group😂
.
The invite_link appears upon the first time a user joins, but it does not appear when a member returns to a public group. Why is this? The invite link used when a member joins for the second time is different from the one used when they joined the first time.
  1. D
    Did u test using different accounts at the same time? Not exactly “the same time”, but at least to be the same hour, same day, etc. and how many accounts and groups have you tested for the “conclusion”?
    1. .
      I am working on a force add system. Member "A" joined the group and then left. I subsequently generated an invitation link for member "B" via the bot. When I attempted to join the group using the account of member "A" (who had previously left), the addition was not credited to member "B." Why was the addition not counted? Is there an error somewhere, or is this the expected behavior when a member who previously left rejoins?
      1. A
        what do you mean by addition? 🤔
        1. .
          Member joins using an invitation link from another member
Вся ветка · 4 ответа →
D
Would u like to show some process screenshots for the conclusion?
R
Hi Nandu 😋 Python Expert Please post code or tracebacks using a pastebin rather than via plain text or a picture. https://pastebin.com/ is quite popular, but there are many alternatives out there. Of course, for very short snippets, text is fine. Please at least format it as monospace in that case., we like to keep our groups readable and thus require long code to be in a pastebin. ⚠️ The code snippet(s) in your message have been moved to https://pastebin.poolitzer.eu/p/tqYxqo.py. Your original message will be deleted in a minute, please reply to this message with your query.
💯1
N
https://pastebin.poolitzer.eu/p/tqYxqo.py See i am making a project where Fastapi & PTB is both in single repo. i run the bot using python main_tg_bot.py i run fastapi webapp using python main_fastapi.py See for the bot i have some different settings in my application.py exampel this UPPER CODE, and this settings is working when the bot is running in the PTB's application.run_polling(). But from the webapp i need to send some information or file to the bot the problem is: how i can connect my fastapi with the PTB so that from fastapi when i will send a notificaiton to the user via bot how i will use the defaults and request again?
  1. N
    What i found a solution is rather than use telegram.Bot i will use ExtBot, so this looks like i will use htis obj in my fastapi application, will this ok to use ok? (it is working fines) but see the return type of applicaion.bot is not extbot btw so what would best here? def get_bot_obj() -> ExtBot: """ One shared Bot for the whole web process (keeps the connection pool). This has advace bot having many defaults """ from app.bot_tg.application import application return application.bot
Вся ветка · 2 ответа →
P
Wiki of python-telegram-bot - Category Design Pattern Running PTB alongside other asyncio frameworks
P
Or you can use FastAPI’s lifespan to start your bot.
🤔1
O
I remember when hastebin was good
🙏1
O
GIF
HX3WaWdqH2okqfZUq.mp4 · 841 КБ · нажмите — покажем
Архив по месяцам
октябрь 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. О проекте · Вопросы · Границы индекса · Убрать страницу из выдачи · Каталог · Поиск · Как мы считаем