[Newbies] OI screenshot Telegram install
christoph.thiede at student.hpi.uni-potsdam.de
christoph.thiede at student.hpi.uni-potsdam.de
Thu May 27 10:43:04 UTC 2021
Hi David,
it is great to hear that you are interested in my bot! :-) From your description you did everything right so far, now you would need to do the remaining steps from the self-hosting instructions:
2. Send a Telegram message to @BotFather (https://t.me/BotFather) to register your very own bot. He will send you a secret bot token.
3. To start a bot instance, open a Workspace and do the following:
bot := TelegramSmalltalkBot withToken: '<your_bot_token>'.
bot spawnNewProcess.
Now your bot instance should be running and should be able to send it a message from your Telegram account!
As a reminder, if you do not want that everyone from all over the world has access to your bot, you should define an allow-list of chat IDs. You can do this after you have send at least one message to your bot instance. After that, the simplest way to define the allow-list is to run the following in the same workspace window:
chatIds := (bot instVarNamed: 'sessions') keys.
Smalltalk at: #TBTestBotChatIds put: chatIds.
If you have any further questions, please feel free to ask them. :-)
Best,
Christoph
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
>
>
> Hi,
>
> I've seen a demonstration by Christoph Thiede of a TelegramSmalltalkBot.
>
> I'm using OpenIndiana (UNIX) with the cog-spur VM using Squeak6.0alpha-20532 64bit.
>
> #pkg list -v cog-spur
> runtime/smalltalk/cog-spur at 5.0.2957,5.11-2020.0.1.1
>
> I don't know whether I understood the demo correctly, but my
> understanding was that is is possible to send Telegram messages from Squeak.
>
> I'm trying to find out whether this works on OpenIndiana.
>
> Following instructions at 'Self hosting the bot' at:
>
> https://github.com/LinqLover/TelegramSmalltalkBot
>
> First of all, step 1 works (I think it works, see screenshot):
>
> Metacello new
> baseline: 'TelegramSmalltalkBot';
> githubUser: 'LinqLover' project: 'TelegramSmalltalkBot' path: 'src';
> load.
>
> As a remark, because I'm a total absolute beginner with this,
> I had to figure out "Install the latest Trunk updates in your image":
>
> The way to do this seems to be:
>
> a) in the Squeak menu update Squeak
>
> this upgraded my Squeak6.0alpha-20532 to Squeak6.0alpa-20533 64bit
>
> from a Workspace perhaps:
>
> TheWorldMainDockingBar updateSqueak.
> or
> MCMcmUpdater updateFromServer.
>
> b) run in a workspace :
>
> Installer ensureRecentMetacello
>
> I'm just adding this as a remark because without the ensureRecentMetacello,
> the instructions given complain 'no selector githubUser:project:path:'.
>
> I think this because it is assumed that you first run ensureRecentMetacello,
> or otherwise have Metacello loaded in your image.
>
> Because I'm unfamiliar with Metacello, I'm just adding this remark.
>
> Anyway Metacello seems to load, and then it proceeds loading
> SimulationStudio-Base-cypress and finally TelegramSmalltalkBot-Tests-cypress.
>
> My question now is how to proceed.
>
> Can I run some tests at this point to check that the Metacello install of
> TelegramSmalltalkBot was succesful ?
>
> Thanks!
> David Stes
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQEcBAEBCAAGBQJgr2m+AAoJENdFDkXGiciz8mUIAKktQIhOmIEURfTkAL6c1c7l
> l27FK1v7b60jolw+TnW9XOPtYbSHjOpBSiJMxfUWjXOy2GO8QSrrqCUAGL0f3Bcy
> ihNgyTeDe+faHItoIoXjb8wGzb6MFE8rLuB0STe6hPBhBrJV+RBPchx0xqKmovAA
> I3V0pX1xEO9Kf2cPX+R0F1Yfu9ruKtxVFqT5RnlRAl0AKgCuOBxBHqOgZkkfribi
> y5Ir003P4FahFFkpKHalAjf76XwVpKVh9mmAAneG/LzuStKSPNErB/98/HOp0Rj/
> NTR/vyw731QS/3BzZnZAR9dVz/MCbDPvaXO9W1Hp03wyGf5s7BKlqH8bTWfJvpw=
> =WCAJ
> -----END PGP SIGNATURE-----
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: oi-telegramstbot-install.png
> Type: image/png
> Size: 174803 bytes
> Desc: not available
> URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20210527/a0a2c31c/attachment-0001.png>
>
>
More information about the Beginners
mailing list