Python code org ๐โ+
bot_source_code.zip
Koสปngillilar ๐๐๐๐๐
1ta ๐ โญ
โญ 1k
1ta ๐ โญ
โญ 1k
2๐4
arxiv.zip
63.1 KB
Vazifasi: Quiz bot ๐ค
Versiya: 1
Kerakli kutubxonalar:
kutubxona.txt
oสปrnatish: pip install -r kutubxona.txt
Asosiy fayl: 2.py
Manba: @python_code_org
Versiya: 1
Kerakli kutubxonalar:
kutubxona.txt
oสปrnatish: pip install -r kutubxona.txt
Asosiy fayl: 2.py
Manba: @python_code_org
โคโ๐ฅ2โค1
Botni oสปchityamman. ๐ฎโ๐จ
Baribir hechkim ishlamayapti. ๐งโ๐ป
Baribir hechkim ishlamayapti. ๐งโ๐ป
Sinab koสปrila bot @jamsh1db1k10bot ๐ค
Vazifasi: PDF tashlaysiz, u esa rasm qilib beradi ๐โก๏ธ๐ผ๏ธ
Hozircha ishlatish VIP, keyinchalik yoqsa sotaman yoki tarqataman โจ
Vazifasi: PDF tashlaysiz, u esa rasm qilib beradi ๐โก๏ธ๐ผ๏ธ
Hozircha ishlatish VIP, keyinchalik yoqsa sotaman yoki tarqataman โจ
Telegram
๏ธโ/โ
Python ๐
Forwarded from BotNews
This media is not supported in your browser
VIEW IN TELEGRAM
Bot API 10.3
๐ Button Revolution
โข Buttons can now be placed right inside any rich message โ with multiple native styles and custom alignment.
โข Out of the box, these buttons support callbacks, Mini Apps, Login URLs, copying text and more.
โข Bots can now mark inline buttons as disabled.
๐ป Ephemeral Messages
โข Bots can now replace their messages with an ephemeral overlay, then edit it with rich content or newly uploaded media. This unlocks rich, personalized flows and responses running in a single message.
๐ช Rich Messages
โข Bots can now attach documents to rich messages and more easily embed media โ including previously uploaded files.
โข Rich Messages now support expandable quote blocks and compact tables.
๐ฆ AI Agents
โข Bots now support a native Stop button for streamed drafts and can optionally preserve partial responses.
โข And more, see the full changelog for details:
https://core.telegram.org/bots/api-changelog#august-24-2026
โข Buttons can now be placed right inside any rich message โ with multiple native styles and custom alignment.
โข Out of the box, these buttons support callbacks, Mini Apps, Login URLs, copying text and more.
โข Bots can now mark inline buttons as disabled.
โข Bots can now replace their messages with an ephemeral overlay, then edit it with rich content or newly uploaded media. This unlocks rich, personalized flows and responses running in a single message.
โข Bots can now attach documents to rich messages and more easily embed media โ including previously uploaded files.
โข Rich Messages now support expandable quote blocks and compact tables.
โข Bots now support a native Stop button for streamed drafts and can optionally preserve partial responses.
โข And more, see the full changelog for details:
https://core.telegram.org/bots/api-changelog#august-24-2026
Please open Telegram to view this post
VIEW IN TELEGRAM
# Telegram Bot API 10.3 โ Yangi funksiyalar uchun curl so'rovlari
>
## 1. Rich Messages
### RichMessageButton bilan sendRichMessage
### RichBlockTable โ is_compact bilan
### RichBlockExpandableBlockQuotation
### RichBlockDocument โ fayl bilan
---
## 2. Ephemeral Messages
### sendMessage โ ephemeral_message_parameters bilan
### sendPhoto โ ephemeral xabar sifatida
### editEphemeralMessageMedia โ yangi fayl yuklab (multipart)
### editEphemeralMessageCaption โ show_caption_above_media bilan
### editEphemeralMessageText โ rich_message bilan
---
## 3. can_send_welcome_messages
### promoteChatMember
>
<TOKEN> o'rniga o'z bot tokeningizni, <CHAT_ID> o'rniga chat ID'ni qo'ying.## 1. Rich Messages
### RichMessageButton bilan sendRichMessage
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendRichMessage" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"rich_message": {
"blocks": [
{
"type": "buttons",
"buttons": [
{ "type": "button", "text": "Saytga o'\''tish", "url": "https://example.com" },
{ "type": "button", "text": "Callback", "callback_data": "action_1" }
]
}
]
}
}'
### RichBlockTable โ is_compact bilan
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendRichMessage" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"rich_message": {
"blocks": [
{
"type": "table",
"is_compact": true,
"rows": [ ["Nomi", "Narxi"], ["Mahsulot A", "10 000 so'\''m"] ]
}
]
}
}'
### RichBlockExpandableBlockQuotation
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendRichMessage" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"rich_message": {
"blocks": [
{
"type": "expandable_block_quotation",
"text": "Bu uzun iqtibos matni bo'\''lib, foydalanuvchi uni yig'\''ish yoki ochish imkoniga ega...",
"expanded": false
}
]
}
}'
### RichBlockDocument โ fayl bilan
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendRichMessage" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"rich_message": {
"blocks": [
{
"type": "document",
"document": { "file_id": "BAADBAADrwADBREAAYag3z..." },
"caption": "Hisobot fayli"
}
]
}
}'
---
## 2. Ephemeral Messages
### sendMessage โ ephemeral_message_parameters bilan
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendMessage" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"text": "Bu vaqtinchalik xabar",
"ephemeral_message_parameters": {
"receiver_user_id": 987654321,
"callback_query_id": "unique_callback_id_123",
"replace_callback_query_message": true
}
}'
### sendPhoto โ ephemeral xabar sifatida
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendPhoto" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"photo": "https://example.com/rasm.jpg",
"ephemeral_message_parameters": {
"receiver_user_id": 987654321
}
}'
### editEphemeralMessageMedia โ yangi fayl yuklab (multipart)
curl -X POST "https://api.telegram.org/bot<TOKEN>/editEphemeralMessageMedia" \
-F "chat_id=<CHAT_ID>" \
-F "message_id=42" \
-F 'media={"type":"photo","media":"attach://new_photo.jpg"}' \
-F "new_photo.jpg=@/local/path/rasm.jpg"
### editEphemeralMessageCaption โ show_caption_above_media bilan
curl -X POST "https://api.telegram.org/bot<TOKEN>/editEphemeralMessageCaption" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"message_id": 42,
"caption": "Yangi tavsif",
"show_caption_above_media": true
}'
### editEphemeralMessageText โ rich_message bilan
curl -X POST "https://api.telegram.org/bot<TOKEN>/editEphemeralMessageText" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"message_id": 42,
"rich_message": {
"blocks": [ { "type": "text", "text": "Yangilangan matn" } ]
}
}'
---
## 3. can_send_welcome_messages
### promoteChatMember
curl -X POST "https://api.telegram.org/bot<TOKEN>/promoteChatMember" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"user_id": 987654321,
"can_send_welcome_messages": true
}'
### getChatMember โ natijada can_send_welcome_messages ko'rinadi
---
## 4. Reply Markup
### DisabledButton โ disabled maydoni bilan
### force_reply โ Inline klaviaturada
### force_reply โ Reply klaviaturada
---
## 5. Umumiy funksiyalar
### sendMessageDraft โ can_stop va keep_on_stop bilan
### sendRichMessageDraft โ can_stop va keep_on_stop bilan
### getUpdates โ MessageGenerationStopped va CommunityChatJoined kabi yangilanishlarni olish
Javobda quyidagi kabi maydonlar keladi:
```json
{
"message_id": 55,
"chat": { "id": <CHAT_ID>, "type": "supergroup" },
"community_chat_joined": {
"chat": { "id": -1009876543210, "type": "supergroup" }
}
}
bash
curl -X GET "https://api.telegram.org/bot<TOKEN>/getBusinessConnection?business_connection_id=<CONNECTION_ID>"
json
{
"gift": { "id": "gift_001" },
"origin": "upgrade",
"text": "Tabriklaymiz!",
"entities": [ { "type": "bold", "offset": 0, "length": 11 } ],
"is_private": true
}
curl -X GET "https://api.telegram.org/bot<TOKEN>/getChatMember?chat_id=<CHAT_ID>&user_id=987654321"
---
## 4. Reply Markup
### DisabledButton โ disabled maydoni bilan
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendMessage" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"text": "Tanlovni belgilang",
"reply_markup": {
"inline_keyboard": [
[
{ "text": "Faol tugma", "callback_data": "active" },
{ "text": "O'\''chirilgan", "callback_data": "inactive", "disabled": true }
]
]
}
}'
### force_reply โ Inline klaviaturada
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendMessage" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"text": "Savolga javob bering",
"reply_markup": {
"inline_keyboard": [[ { "text": "Javob berish", "callback_data": "reply_1" } ]],
"force_reply": true
}
}'
### force_reply โ Reply klaviaturada
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendMessage" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"text": "Tanlang",
"reply_markup": {
"keyboard": [[ { "text": "Ha" }, { "text": "Yo'\''q" } ]],
"resize_keyboard": true,
"force_reply": true
}
}'
---
## 5. Umumiy funksiyalar
### sendMessageDraft โ can_stop va keep_on_stop bilan
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendMessageDraft" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"text": "Yozilmoqda...",
"can_stop": true,
"keep_on_stop": true
}'
### sendRichMessageDraft โ can_stop va keep_on_stop bilan
curl -X POST "https://api.telegram.org/bot<TOKEN>/sendRichMessageDraft" \
-H "Content-Type: application/json" \
-d '{
"chat_id": <CHAT_ID>,
"rich_message": { "blocks": [ { "type": "text", "text": "Tayyorlanmoqda..." } ] },
"can_stop": true,
"keep_on_stop": false
}'
### getUpdates โ MessageGenerationStopped va CommunityChatJoined kabi yangilanishlarni olish
curl -X GET "https://api.telegram.org/bot<TOKEN>/getUpdates"
Javobda quyidagi kabi maydonlar keladi:
{
"update_id": 100000001,
"stopped_message_generation": {
"chat": { "id": <CHAT_ID>, "type": "private" },
"message_id": 42
}
}```json
{
"message_id": 55,
"chat": { "id": <CHAT_ID>, "type": "supergroup" },
"community_chat_joined": {
"chat": { "id": -1009876543210, "type": "supergroup" }
}
}
### getUniqueGiftInfo โ text, entities, is_private bilan
bash
curl -X GET "https://api.telegram.org/bot<TOKEN>/getBusinessConnection?business_connection_id=<CONNECTION_ID>"
Javobdagi `UniqueGiftInfo` obyekti:
json
{
"gift": { "id": "gift_001" },
"origin": "upgrade",
"text": "Tabriklaymiz!",
"entities": [ { "type": "bold", "offset": 0, "length": 11 } ],
"is_private": true
}
`Forwarded from ๏ธโ/โ
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from ๏ธโ/โ
Please open Telegram to view this post
VIEW IN TELEGRAM
Kimdadir biror starts yoki mine bot bormi? Avto qilishga harakat qilamiz ๐คโจ