async def tasks():
await main()
await create_new_client()
asyncio.get_event_loop().run_until_complete(tasks())
$shipping_packages = WC()->cart->get_shipping_packages();
$shipping_zone = wc_get_shipping_zone( reset( $shipping_packages ) );
$zone_method = $shipping_zone->get_shipping_methods();
foreach( $zone_method as $method ) {
echo $method->title . '<br />';
}
SELECT * FROM [Шарики] WHERE [Цвет] IN ('Красный','Зеленый','Белый','Синий')
markup = types.ReplyKeyboardMarkup()
markup.row('/comm', '/comm2')
markup.row('/comm1','/comm3')
bot.send_message(message.chat.id, "Ваш выбор:", reply_markup=markup)
@bot.message_handler(commands=['command'])
answ=bot.send_message(message.chat.id, "Ваш вопрос")
bot.register_next_step_handler(answ,name_your_next_func)
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('mainApp.urls')),
path('news/', include('news.urls')),
path('webexample/', include('webexample.urls')),
]
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root= settings.MEDIA_ROOT)