Replies: 6 comments 1 reply
-
Name: python-telegram-bot |
Beta Was this translation helpful? Give feedback.
-
You have installed v20.8 but your code is written for <=v13.15. you'll have to update your code. See https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-20.0. |
Beta Was this translation helpful? Give feedback.
-
I`ve downloaded version - the same problem exists. |
Beta Was this translation helpful? Give feedback.
-
If I remove Request and its import from your library - all code works fine, but I can`t send meesage to Telegram... |
Beta Was this translation helpful? Give feedback.
-
import streamlit as st
from telegram import Bot, InlineKeyboardButton, InlineKeyboardMarkup
from telegram.ext import Updater, CallbackQueryHandler, MessageHandler, filters
from telegram.request import RequestData
import firebase_admin
from firebase_admin import credentials, db
import logging
from firebase_utils import init_firebase, init_session_state
import sys
class PostBot:
def __init__(self, bot_token, chat_id):
init_firebase()
request = RequestData()
self.bot = Bot(token=bot_token, request=request)
self.chat_id = chat_id
self.like_count = 0
self.dislike_count = 0
self.user_data = {} now problem in |
Beta Was this translation helpful? Give feedback.
-
Please
|
Beta Was this translation helpful? Give feedback.
-
File "...posts.py", line 6, in
from telegram.utils.request import Request
python-telegram-bot 20.8 - when pip list
How to fix problem? Tried to uninstall and install again etc.
Beta Was this translation helpful? Give feedback.
All reactions