Heroku telegam python机器人部署
我的python电报机器人代码是Heroku telegam python机器人部署,python,heroku,telegram,Python,Heroku,Telegram,我的python电报机器人代码是 import telebot, os from telebot import types # from telebot import from settings import TOKEN import requests #from pyTelegramBotAPI import users from pyzbar.pyzbar import decode from PIL import Image import sqlite3 import json bot
import telebot, os
from telebot import types
# from telebot import
from settings import TOKEN
import requests
#from pyTelegramBotAPI import users
from pyzbar.pyzbar import decode
from PIL import Image
import sqlite3
import json
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(commands=['start'])
def send_welcome(message):
markup = types.ReplyKeyboardMarkup()
markup.add(types.KeyboardButton(text="Дати доступ до гуолокації.", request_location=True))
bot.send_message(message.chat.id, "Нам потрібена ваша геолокація", reply_markup=markup)
bot.polling()
Proc文件是web:pythonbot.py
当我运行本地bot时,部署bot后,不向用户发送任何内容您必须将3个文件上载到Heroku: 过程 requirements.txt +其他模块 runtime.txt 或其他python版本 我建议用bot.infinity\u pollingrue替换bot.polling
web: python bot.py
pyTelegramBotAPI==3.6.6
heroku==0.1.4
python-3.7.0