Что нужно писать в строке «Объект»?
Updater
The sole purpose of this class now is to fetch updates from Telegram. It now only accepts the arguments bot and update_queue and only has those attributes.
Использовать time.time() не хочется, чтобы избежать конфликта с Телеграм при неправильно установленном времени на локальной машине пользователя.
can't parse inline keyboard button: Text buttons are unallowed in the inline keyboard
Не работают Inline-кнопки, в чем причина?
This object represents one button of an inline keyboard. You must use exactly one of the optional fields.
# запустили на локалхосте на порту 8008
python3 -m http.server --bind localhost 8008
ssh -R 9009:localhost:8008 your-host.name
Host your-host.name
HostName your-host.name
User notroot
Port 4000
IdentityFile /home/you_user/.ssh/id_rsa
reply_to_message
@bot.message_handler(func=lambda message: True, content_types=['text'])
def command_default(m):
if m.reply_to_message:
pass
Есть конвертер с аиограм на телебот?
Как исправить эту ошибку в pythonanywhere?
A limited account with one web app at your-username.pythonanywhere.com, restricted outbound Internet access from your apps, low CPU/bandwidth, no IPython/Jupyter notebook support.
It works and it's a great way to get started!
Человек должен будет скачать файл, и файл будет содержать игру.
Free accounts' internet access goes via a proxy "whitelist". Here is the list of sites currently allowed:
import random
movie_list = ['The Godfather', 'The Wizard of Oz', 'Citizen Kane', 'The Shawshank Redemption', 'Pulp Fiction']
moview_item = random.choice(movie_list)
print ("Randomly selected item from list is - ", moview_item)
moview_item = random.choice(movie_list)
print ("Randomly selected item from list is - ", moview_item)
Не могу понять как именно это реализовать
Deep linking
Telegram bots have a deep linking mechanism, that allows for passing additional parameters to the bot on startup. It could be a command that launches the bot — or an auth token to connect the user's Telegram account to their account on some external service.
Each bot has a link that opens a conversation with it in Telegram — https://telegram.me/. You can add the parameters start or startgroup to this link, with values up to 64 characters long. For example:
https://telegram.me/triviabot?startgroup=test