<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi David,</p>
<p><br>
</p>
<p>if the bot hangs again, you could press Cmd + Dot to interrupt it and find out where exactly it is hanging. Again, you could share a full stack trace then. :-)</p>
<p><br>
</p>
<p>What tests are failing? What failure/error messages do you get?</p>
<p><br>
</p>
<p><span style="font-size:12pt">> </span><span style="font-size:12pt">TelegramBotError 409: Conflict: terminated by other getUpdates request; </span><span style="font-size:12pt">make sure that only one bot instance is running.</span><br>
</p>
<p></p>
<div>> <span style="font-size:12pt">How do I reset the bot in a Squeak Workspace ?</span>
<div><br>
</div>
</div>
<p></p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div class="x__rp_T4" id="x_Item.MessagePartBody">
<div class="x__rp_U4 x_ms-font-weight-regular x_ms-font-color-neutralDark x_rpHighlightAllClass x_rpHighlightBodyClass" id="x_Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="x_divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="x_Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont">
<div><font size="3" color="black"><span style="font-size:12pt"><a href="http://www.hpi.de/" target="_blank" rel="noopener noreferrer" id="LPNoLP"><font size="2"><span id="LPlnk909538"><font color="#757B80"></font></span></font></a></span></font></div>
</font></div>
</div>
</font></div>
</div>
</div>
</div>
<div class="x__rp_T4" id="x_Item.MessagePartBody">Technically, all TelegramBot frameworks for Smalltalk or Python or whatsoever are only clients. They use the Telegram Bot API which connects them to the actual server. This means that a part of the bot's state
 is kept on the Telegram servers. Concretely, this is an event queue. If you make requests for the same bot from multiple clients (i.e., images with TelegramSmalltalkBot), these conflict which each other because they both pull updates from the same queue.</div>
<div class="x__rp_T4" id="x_Item.MessagePartBody">Usually, you can simply ignore this error by pressing Proceed. If it occurs again, you should make sure that no other client is running at the same time. For TelegramBot in Squeak, you can do so by opening the
 process browser and searching for any telegram bot process. You can yellow-click them and choose terminate.</div>
<div class="x__rp_T4" id="x_Item.MessagePartBody"><br>
</div>
<div class="x__rp_T4" id="x_Item.MessagePartBody">
<p style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">
For testing, you can also manually inspect the latest updates for the bot by evaluating the following in your workspace:</p>
<p style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">
<br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">
bot peekUpdates explore.</p>
<p style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">
<br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">
If you have sent a message to the bot before, you should see a non-empty list.</p>
</div>
<div class="x__rp_T4" id="x_Item.MessagePartBody"><br>
</div>
<div class="x__rp_T4" id="x_Item.MessagePartBody">> <span style="font-size:12pt">I think perhaps I should try an older image 5.3 or early 6.0alpha, </span><span style="font-size:12pt">and not update it ? What do you think ?</span>
<div><br>
</div>
<div>No, TelegramBot/TelegramSmalltalkBot are explicitly designed to "live at head", older versions of Squeak Alpha are not supported. I can only tell that it works well for me with an up-to-date Trunk image for both Windows 2004 and Debian/Raspbian. If you
 can provide a concrete stack trace, we should be able to solve the problem. :-)</div>
<div><br>
</div>
<div>Best,</div>
<div>Christoph</div>
</div>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> stes@PANDORA.BE <stes@telenet.be><br>
<b>Gesendet:</b> Freitag, 28. Mai 2021 20:07:14<br>
<b>An:</b> Thiede, Christoph<br>
<b>Cc:</b> beginners<br>
<b>Betreff:</b> Re: [Newbies] OI screenshot Telegram install</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
<br>
Hi,<br>
<br>
I could not reproduce the debugger timeout:<br>
<br>
ConnectionTimedOut: Data receive timed out. <br>
<br>
In my new tests on OpenIndiana and SUSE SLES 15 , I get the same behaviour :<br>
<br>
        bot := TelegramSmalltalkBot withToken: '<your_bot_token>'.<br>
        bot spawnNewProcess. <br>
<br>
hangs.  Of course the hang MAY end in a timeout, I only waited 5 minutes.<br>
<br>
Also on SUSE, same thing.  It also hangs.<br>
<br>
I think the token is correct because the creation of the Squeak bot,<br>
works, and when I inspect it, it has retrieved the correct bot name.<br>
<br>
Also on the same systems I am able to use Python telegram-send,<br>
and with the Python program it works (can send messages to telegram);<br>
so the network setup works.<br>
<br>
Perhaps Squeak is more sensitive to network setup than Python,<br>
it has some characteristics of a network problem (comm.timeout).<br>
<br>
Also the Python test shows that the token is correct,<br>
and that it network-wise could work, but perhaps it is a network issue.<br>
<br>
DNS api.telegram.org and ping ICMP to that host work.<br>
<br>
The DNS has records for both ipv4 and ipv6;<br>
host api.telegram.org<br>
api.telegram.org has address 149.154.167.220<br>
api.telegram.org has IPv6 address 2001:67c:4e8:f004::9<br>
<br>
<br>
Another remark:  I ran the tests in the Squeak TestRunner for TelegramSTBot,<br>
and on OpenIndiana they all succeed, on Linux 2 failed but the others were OK.<br>
<br>
When I experiment in the Workspace with DoIt of<br>
<br>
        bot := TelegramSmalltalkBot withToken: '<your_bot_token>'.<br>
        bot spawnNewProcess. <br>
<br>
I get:<br>
<br>
TelegramBotError 409: Conflict: terminated by other getUpdates request;<br>
make sure that only one bot instance is running.<br>
<br>
<br>
How do I reset the bot in a Squeak Workspace ?<br>
<br>
Note that I am using very recent images 6.0alpa-20535.image 64 bit,<br>
in both cases, on SUSE SLES Linux and on OpenIndiana.<br>
<br>
I think perhaps I should try an older image 5.3 or early 6.0alpha,<br>
and not update it ? What do you think ?<br>
<br>
In any case your demonstration of the SqueakSmalltalkBot was impressive,<br>
I'd like to run it  as well on either OpenIndiana or SUSE.<br>
<br>
David Stes<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
iQEcBAEBCAAGBQJgsTDGAAoJENdFDkXGicizA/EH/io/I79Y/bzYMQCpBlfRypjw<br>
fyTdNmH0ts35DCITx5oNnfNj+3XPXtGJaryjrXPXkf42UfScEx/gLnLZw2a0kW5J<br>
Ke5/4lbTIeXKOPtX8yZIIj7pHcC5LE//w+pWnHIFrZDjeJKgWTcKdIoq4ZE5hAjO<br>
+BLVNrLbXYomsp+JbXfHwDuUDu38sSaN+Dj6nmi5pJN0slV3o4IQUohsluEhv3XO<br>
jkjwU343WMDGyz2bFLmV+c4D6eQ3v1iDlEbl0wKiLZC6d10qHXktLvP5AuMnckz2<br>
04jn/D3tcru2nCLCe1wAedhdD34vKykt4+YkPI6XDYytU9MFYW45UUfqpknJUDk=<br>
=B3QY<br>
-----END PGP SIGNATURE-----<br>
</div>
</span></font>
</body>
</html>