from django.shortcuts import render
from django.conf import settings
from django_telegrambot.apps import DjangoTelegramBot

# Create your views here.
def index(request):
    bot_list = DjangoTelegramBot.bots
    context = {'bot_list': bot_list, 'update_mode':settings.TELEGRAM_BOT_MODE}
    return render(request, 'bot/index.html', context)

from django.shortcuts import render
from django.conf import settings
from django_telegrambot.apps import DjangoTelegramBot

# Create your views here.
def index(request):
    bot_list = DjangoTelegramBot.bots
    context = {'bot_list': bot_list, 'update_mode':settings.DJANGO_TELEGRAMBOT['MODE']}
    return render(request, 'bot/index.html', context)

Fix sampleproject view