ALT Linux Bugzilla
– Attachment 8079 Details for
Bug 36529
Библиотека выдает ошибку
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Скрипт бота вызывающий ошибку
main.py (text/x-python), 1.53 KB, created by
Евгений Кухтинов
on 2019-04-06 07:10:23 MSK
(
hide
)
Description:
Скрипт бота вызывающий ошибку
Filename:
MIME Type:
Creator:
Евгений Кухтинов
Created:
2019-04-06 07:10:23 MSK
Size:
1.53 KB
patch
obsolete
>#!/usr/bin/env python ># -*- coding: utf-8 -*- ># ># bot.py ># ># Copyright 2019 NightScreamer <nightscreamer@comp-core-i7-3610qm-473dc9.localdomain> ># ># This program is free software; you can redistribute it and/or modify ># it under the terms of the GNU General Public License as published by ># the Free Software Foundation; either version 2 of the License, or ># (at your option) any later version. ># ># This program is distributed in the hope that it will be useful, ># but WITHOUT ANY WARRANTY; without even the implied warranty of ># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ># GNU General Public License for more details. ># ># You should have received a copy of the GNU General Public License ># along with this program; if not, write to the Free Software ># Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, ># MA 02110-1301, USA. ># ># > >import telebot > >from telebot import apihelper > >API_TOKEN = '' > >bot = telebot.TeleBot(API_TOKEN) >apihelper.proxy = {'https', 'socks5://login:pass@180.210.205.199:8888'} > ># Handle '/start' and '/help' >@bot.message_handler(commands=['help', 'start']) >def send_welcome(message): > bot.reply_to(message, """\ >Hi there, I am EchoBot. >I am here to echo your kind words back to you. Just say anything nice and I'll say the exact same thing to you!\ >""") > > ># Handle all other messages with content_type 'text' (content_types defaults to ['text']) >@bot.message_handler(func=lambda message: True) >def echo_message(message): > bot.reply_to(message, message.text) > > >bot.polling(none_stop=True)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 36529
:
8078
| 8079