pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

ImportError: cannot import name 'types'

Open Ciro-U-Suriotu opened this issue 7 years ago • 1 comments

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 :)

Ciro-U-Suriotu avatar Feb 24 '19 01:02 Ciro-U-Suriotu

from telebot.types import *

VladGavriuk avatar Jan 09 '20 18:01 VladGavriuk