def read_trans(bot,update):
    trans=update.callback_query.data
    chat_id=update.callback_query.message.chat_id
    ad_id=get_ad_id(chat_id,conn)
    trans=int(trans)
    update_field(ad_id,'transmission',trans,conn)
    return start(bot,update)
def enter_release_year(bot,update):
    release_year=update.message.text
    chat_id = update.message.chat_id
    ad_id = get_ad_id(chat_id, conn)
    release_year = int(release_year)
    update_field(ad_id, 'release_year', release_year, conn)
    return start(bot, update)
def enter_model(bot,update):
    model=update.message.text
    chat_id=update.message.chat_id
    ad_id=get_ad_id(chat_id,conn)
    model=str(model)
    print(model)
    update_field(ad_id, 'model', model, conn)
    return start(bot,update)
def enter_mileage(bot,update):
    mileage=update.message.text
    chat_id=update.message.chat_id
    ad_id=get_ad_id(chat_id,conn)
    mileage=int(mileage)
    print(mileage)
    update_field(ad_id,'mileage',mileage,conn)
    return start(bot,update)
def enter_brand(bot,update):
    brand=update.message.text
    chat_id=update.message.chat_id
    ad_id=get_ad_id(chat_id,conn)
    brand=str(brand)
    print(brand)
    update_field(ad_id,'brand',brand,conn)
    return start(bot,update)
def enter_price(bot,update):
    price=update.message.text
    chat_id=update.message.chat_id
    ad_id=get_ad_id(chat_id,conn)
    price=int(price)
    print(price)
    update_field(ad_id, 'price', price, conn)
    return start(bot,update)