<header>
<div class="logo">
<img>
</div>
<div class="navigation">
... link etc
</div>
</header>
import telebot
TOKEN =
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Howdy, how are you doing?")
print(message.chat.id)
chat_id = '105674243' # <- paste id
bot.send_message(chat_id, 'some text')
bot.polling()
@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "Howdy, how are you doing?")
@bot.message_handler(func=lambda m: True)
def echo_all(message):
bot.reply_to(message, message.text)
bot.polling()
@bot.message_handler(func=lambda m: True)
def echo_all(message):
chat_id = message.chat.id
print(chat_id)
bot.send_message(chat_id, 'some text')
scp username@192.168.1.111:/path/to/myfile.txt /Users/Jamie/local/path/to/myfile.txt
<?php
$file = 'somefile.txt';
$remote_file = 'readme.txt';
// установка соединения
$conn_id = ftp_connect($ftp_server);
// проверка имени пользователя и пароля
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// загрузка файла
if (ftp_put($conn_id, $remote_file, $file, FTP_ASCII)) {
echo "$file успешно загружен на сервер\n";
} else {
echo "Не удалось загрузить $file на сервер\n";
}
// закрытие соединения
ftp_close($conn_id);
?>