pyTelegramBotAPI
pyTelegramBotAPI copied to clipboard
ImportError: cannot import name 'types'
When I try to deploy my telegram bot in heroku i get this error
ImportError: cannot import name 'types'
my requirements.txt
Click==7.0
Flask==1.0.2
itsdangerous==1.1.0
Jinja2==2.10
MarkupSafe==1.1.0
requests==2.7.0
pyTelegramBotAPI==3.6.6
Werkzeug==0.14.1
requests==2.7.0
my imports
import telebot
import os
from telebot import types
from requests.exceptions import ConnectionError
from flask import Flask, request
import requests
How to fix this? Thank you :)
from telebot.types import *