[Модуль] Telegram (telegram)
Модератор: immortal
-
- Сообщения: 273
- Зарегистрирован: Вс авг 20, 2017 1:46 am
- Благодарил (а): 142 раза
- Поблагодарили: 13 раз
Re: [Модуль] Telegram (telegram)
Ребята подскажите где можно найти управление светом через телеграмм с обновлением статуса? Помню где-то было но не могу найти.
Raspberry Pi3, с образа от Сергея 3.34
-
- Сообщения: 2084
- Зарегистрирован: Пт апр 07, 2017 12:20 pm
- Благодарил (а): 313 раз
- Поблагодарили: 457 раз
Re: [Модуль] Telegram (telegram)
Telegram | Блог
Raspberry Pi3, с образа от Сергея 3.31, PHP 7, флешка 16 Гб работает с 10.09.2017
Почти всё время уходит на исправление ошибок, оставшееся - на их повторение. (с) ))) Спасибо
Raspberry Pi3, с образа от Сергея 3.31, PHP 7, флешка 16 Гб работает с 10.09.2017
Почти всё время уходит на исправление ошибок, оставшееся - на их повторение. (с) ))) Спасибо
-
- Сообщения: 52
- Зарегистрирован: Пт мар 29, 2019 4:31 pm
- Благодарил (а): 8 раз
- Поблагодарили: 0
Re: [Модуль] Telegram (telegram)
Код: Выделить всё
Aug 16 11:49:37.126 [notice] Tor 0.2.9.14 running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2g and Zlib 1.2.8.
Aug 16 11:49:37.126 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Aug 16 11:49:37.127 [notice] Read configuration file "/etc/tor/torrc".
Aug 16 11:49:37.139 [notice] Opening Socks listener on 127.0.0.1:9050
Aug 16 11:49:37.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Aug 16 11:49:38.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Aug 16 11:49:38.000 [warn] You are running Tor as root. You don't need to, and you probably shouldn't.
Aug 16 11:49:40.000 [notice] Bootstrapped 0%: Starting
Aug 16 11:49:42.000 [notice] Bootstrapped 5%: Connecting to directory server
Aug 16 11:49:42.000 [notice] Bootstrapped 10%: Finishing handshake with directory server
Aug 16 11:49:42.000 [notice] Bootstrapped 15%: Establishing an encrypted directory connection
Aug 16 11:49:42.000 [notice] Bootstrapped 20%: Asking for networkstatus consensus
Aug 16 11:49:42.000 [notice] Bootstrapped 25%: Loading networkstatus consensus
Aug 16 11:49:43.000 [notice] Bootstrapped 45%: Asking for relay descriptors
Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.)
Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.)
Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.)
Aug 16 11:49:43.000 [notice] Bootstrapped 50%: Loading relay descriptors
Aug 16 11:49:45.000 [notice] Bootstrapped 55%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 61%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 66%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 72%: Loading relay descriptors
Aug 16 11:49:46.000 [notice] Bootstrapped 80%: Connecting to the Tor network
Aug 16 11:49:47.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
Aug 16 11:49:47.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.
Aug 16 11:49:47.000 [notice] Bootstrapped 100%: Done
Токен перепроверил, он норм.
Последний раз редактировалось Jon811 Пт авг 16, 2019 12:17 pm, всего редактировалось 1 раз.
- Eraser
- Сообщения: 1085
- Зарегистрирован: Вт окт 21, 2014 7:31 pm
- Откуда: Киров
- Благодарил (а): 14 раз
- Поблагодарили: 869 раз
- Контактная информация:
Re: [Модуль] Telegram (telegram)
токен точно верно указан?Jon811 писал(а): ↑Пт авг 16, 2019 11:59 amВроде все норм открывает, но телега не работает пишет 11:54:39 Error connect or invalid tokenКод: Выделить всё
Aug 16 11:49:37.126 [notice] Tor 0.2.9.14 running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2g and Zlib 1.2.8. Aug 16 11:49:37.126 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning Aug 16 11:49:37.127 [notice] Read configuration file "/etc/tor/torrc". Aug 16 11:49:37.139 [notice] Opening Socks listener on 127.0.0.1:9050 Aug 16 11:49:37.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip. Aug 16 11:49:38.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6. Aug 16 11:49:38.000 [warn] You are running Tor as root. You don't need to, and you probably shouldn't. Aug 16 11:49:40.000 [notice] Bootstrapped 0%: Starting Aug 16 11:49:42.000 [notice] Bootstrapped 5%: Connecting to directory server Aug 16 11:49:42.000 [notice] Bootstrapped 10%: Finishing handshake with directory server Aug 16 11:49:42.000 [notice] Bootstrapped 15%: Establishing an encrypted directory connection Aug 16 11:49:42.000 [notice] Bootstrapped 20%: Asking for networkstatus consensus Aug 16 11:49:42.000 [notice] Bootstrapped 25%: Loading networkstatus consensus Aug 16 11:49:43.000 [notice] Bootstrapped 45%: Asking for relay descriptors Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.) Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.) Aug 16 11:49:43.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 12/6514, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of exit bw = 0% of path bw.) Aug 16 11:49:43.000 [notice] Bootstrapped 50%: Loading relay descriptors Aug 16 11:49:45.000 [notice] Bootstrapped 55%: Loading relay descriptors Aug 16 11:49:46.000 [notice] Bootstrapped 61%: Loading relay descriptors Aug 16 11:49:46.000 [notice] Bootstrapped 66%: Loading relay descriptors Aug 16 11:49:46.000 [notice] Bootstrapped 72%: Loading relay descriptors Aug 16 11:49:46.000 [notice] Bootstrapped 80%: Connecting to the Tor network Aug 16 11:49:47.000 [notice] Bootstrapped 90%: Establishing a Tor circuit Aug 16 11:49:47.000 [notice] Tor has successfully opened a circuit. Looks like client functionality is working. Aug 16 11:49:47.000 [notice] Bootstrapped 100%: Done
Connect ---- Telegram
ЮMoney для благодарностей за помощь: 410012076838296 или нажмите кнопку "Спасибо"!!!
ЮMoney для благодарностей за помощь: 410012076838296 или нажмите кнопку "Спасибо"!!!
-
- Сообщения: 52
- Зарегистрирован: Пт мар 29, 2019 4:31 pm
- Благодарил (а): 8 раз
- Поблагодарили: 0
Re: [Модуль] Telegram (telegram)
Абсолютно, перезапросил, ввел заново, то же самое. Говорю же: на работе все ок, дома никак. Может как-то логи можно глянуть подключения
-
- Сообщения: 172
- Зарегистрирован: Пт апр 06, 2018 9:40 am
- Благодарил (а): 93 раза
- Поблагодарили: 93 раза
Re: [Модуль] Telegram (telegram)
и сюда закину кому может пригодится.
Код получения и вывода всех онлайн устройств. Форматирование как в блоге от Xor. Запрос прямо в телеге оформил.
$text ='<code>';
$sql='SELECT TITLE, status FROM pinghosts ORDER BY TITLE';
$recs = SQLSelect($sql);
foreach($recs as $rec)
{
if ($rec['status']==1){$stat=" ".hex2bin('e29c85')." ";}
elseif ($rec['status']==2){$stat=" ".hex2bin('f09f9aab')." ";}
$text .= mb_substr($rec['TITLE']."ТУТ СЪЕДАЕТ 20 ПРОБЕЛОВ ФОРУМ",0,20); // тут основная фишка!
$text .= mb_substr($stat."А ТУТ 5",0,5);
$text .= ''.PHP_EOL;
}
$text .='</code>';
return "$text";
Код получения и вывода всех онлайн устройств. Форматирование как в блоге от Xor. Запрос прямо в телеге оформил.
$text ='<code>';
$sql='SELECT TITLE, status FROM pinghosts ORDER BY TITLE';
$recs = SQLSelect($sql);
foreach($recs as $rec)
{
if ($rec['status']==1){$stat=" ".hex2bin('e29c85')." ";}
elseif ($rec['status']==2){$stat=" ".hex2bin('f09f9aab')." ";}
$text .= mb_substr($rec['TITLE']."ТУТ СЪЕДАЕТ 20 ПРОБЕЛОВ ФОРУМ",0,20); // тут основная фишка!
$text .= mb_substr($stat."А ТУТ 5",0,5);
$text .= ''.PHP_EOL;
}
$text .='</code>';
return "$text";
- За это сообщение автора newz20 поблагодарили (всего 3):
- serghei (Вс сен 15, 2019 10:34 pm) • sorochan.ilya (Ср сен 18, 2019 6:30 pm) • Samir77 (Сб апр 25, 2020 1:45 pm)
- Рейтинг: 3.49%
-
- Сообщения: 273
- Зарегистрирован: Вс авг 20, 2017 1:46 am
- Благодарил (а): 142 раза
- Поблагодарили: 13 раз
Re: [Модуль] Telegram (telegram)
шо куда пихать?newz20 писал(а): ↑Пн авг 26, 2019 6:38 pmи сюда закину кому может пригодится.
Код получения и вывода всех онлайн устройств. Форматирование как в блоге от Xor. Запрос прямо в телеге оформил.
$text ='<code>';
$sql='SELECT TITLE, status FROM pinghosts ORDER BY TITLE';
$recs = SQLSelect($sql);
foreach($recs as $rec)
{
if ($rec['status']==1){$stat=" ".hex2bin('e29c85')." ";}
elseif ($rec['status']==2){$stat=" ".hex2bin('f09f9aab')." ";}
$text .= mb_substr($rec['TITLE']."ТУТ СЪЕДАЕТ 20 ПРОБЕЛОВ ФОРУМ",0,20); // тут основная фишка!
$text .= mb_substr($stat."А ТУТ 5",0,5);
$text .= ''.PHP_EOL;
}
$text .='</code>';
return "$text";
Raspberry Pi3, с образа от Сергея 3.34
-
- Сообщения: 52
- Зарегистрирован: Пт мар 29, 2019 4:31 pm
- Благодарил (а): 8 раз
- Поблагодарили: 0
Re: [Модуль] Telegram (telegram)
Победил свою телегу. При указании типа прокси socks5 на работе все нормально было, а дома ни в какую. Tor говорит что все норм, подключен. Пинги через него идут и айпишник его отличается от основного. Поменял тип прокси на socks5 hostname, и все заработало. Что это такое? чем грозит?
-
- Сообщения: 172
- Зарегистрирован: Пт апр 06, 2018 9:40 am
- Благодарил (а): 93 раза
- Поблагодарили: 93 раза
Re: [Модуль] Telegram (telegram)
Создаешь команду в телеге и пихаешь в код в окошко ниже с кодом.viktor6 писал(а): ↑Пн авг 26, 2019 10:20 pmшо куда пихать?newz20 писал(а): ↑Пн авг 26, 2019 6:38 pmи сюда закину кому может пригодится.
Код получения и вывода всех онлайн устройств. Форматирование как в блоге от Xor. Запрос прямо в телеге оформил.
$text ='<code>';
$sql='SELECT TITLE, status FROM pinghosts ORDER BY TITLE';
$recs = SQLSelect($sql);
foreach($recs as $rec)
{
if ($rec['status']==1){$stat=" ".hex2bin('e29c85')." ";}
elseif ($rec['status']==2){$stat=" ".hex2bin('f09f9aab')." ";}
$text .= mb_substr($rec['TITLE']."ТУТ СЪЕДАЕТ 20 ПРОБЕЛОВ ФОРУМ",0,20); // тут основная фишка!
$text .= mb_substr($stat."А ТУТ 5",0,5);
$text .= ''.PHP_EOL;
}
$text .='</code>';
return "$text";
- Рейтинг: 2.33%