#python #aiogram
from aiogram import Bot, Dispatcher, types
from aiogram.utils import executor
bot = Bot(token='BOT TOKENI')
dp = Dispatcher(bot)
@dp.message_handler(commands=['start'])
async def send_welcome(message: types.Message):
await bot.send_message(message.chat.id,"Salom")
if name == '__main__':
executor.start_polling(dp)
Python da /start ga salom degich kod :)
from aiogram import Bot, Dispatcher, types
from aiogram.utils import executor
bot = Bot(token='BOT TOKENI')
dp = Dispatcher(bot)
@dp.message_handler(commands=['start'])
async def send_welcome(message: types.Message):
await bot.send_message(message.chat.id,"Salom")
if name == '__main__':
executor.start_polling(dp)
Python da /start ga salom degich kod :)
IT news | Tg Bots
#python #aiogram from aiogram import Bot, Dispatcher, types from aiogram.utils import executor bot = Bot(token='BOT TOKENI') dp = Dispatcher(bot) @dp.message_handler(commands=['start']) async def send_welcome(message: types.Message): await bot.send_me…
#python #aiogram
"""
await message.reply("Hi!\nI'm EchoBot!\nPowered by aiogram.")
if name == '__main__':
executor.start_polling(dp, skip_updates=True)
Biroz xato yozgan ekanman, Bu ishlaydi
@LIDERKODER
from aiogram import Bot, Dispatcher, executor, types
API_TOKEN = '1649328853:AAHCNwTTJiobvC26oUo_Lz7MPyKgMasy_GU'
# Initialize bot and dispatcher
bot = Bot(token=API_TOKEN)
dp = Dispatcher(bot)
@dp.message_handler(commands=['start', 'help'])
async def send_welcome(message: types.Message):
"""
This handler will be called when user sends /start or /help command"""
await message.reply("Hi!\nI'm EchoBot!\nPowered by aiogram.")
if name == '__main__':
executor.start_polling(dp, skip_updates=True)
Biroz xato yozgan ekanman, Bu ishlaydi
@LIDERKODER
#python #matematik
Misol:
Result: 222247
Result: 3478
-------------------------------------------
Misol:
Result: 90
-------------------------------------------
Misol:
Result: 2
Misol:
Result:
Result:
Savollar bolsa comentariyada qoldiring
@Phpdevelopersuz
abs() - Xar qanday ishorali sonni musbat songa aylantiradi!Misol:
abs(-222247)Result: 222247
abs(3478)Result: 3478
-------------------------------------------
max() Qiymatlardan eng kattasini tanlaydiMisol:
max(2,5,78,90,3)Result: 90
-------------------------------------------
min() Qiymatlardan eng kichigini tanlaydiMisol:
min(2,5,78,90,3)Result: 2
round() qiymatli yaxlitlab beradi!Misol:
round(2738.3)Result:
2738round(2748.8)Result:
2749Savollar bolsa comentariyada qoldiring
@Phpdevelopersuz
#python #shunchaki😝😝
Result:
number - Oʻzgaruvchi
[0:8] bu oʻzgaruvchi qiymatidagi index yani nechanchi belgi ekanligi
number = '998997933976'
print(number[0:8],'xx',number[10:13])Result:
99899793 xx 76number - Oʻzgaruvchi
[0:8] bu oʻzgaruvchi qiymatidagi index yani nechanchi belgi ekanligi
IT news | Tg Bots
Tezlik tekshiruvchi[@Liderkoder].py
Mana bomba video.
Python da bot ochish
Videoni koʻrish
Videodagi dastur
@phpdevelopersuz | Obuna boʻling
Python da bot ochish
Videoni koʻrish
Videodagi dastur
@phpdevelopersuz | Obuna boʻling
YouTube
#python #botapi #pytelegrambotapi Python da bot ochish
Assalomu alaykum kanalimiz obunachilari
Bugun biz python dasturlash tili orqalik telegram bot yaratishni oʻrganamiz
Videodagi fayllar va dasturlar:
t.me/phpdevelopersuz kanalida boladi
Bugun biz python dasturlash tili orqalik telegram bot yaratishni oʻrganamiz
Videodagi fayllar va dasturlar:
t.me/phpdevelopersuz kanalida boladi