Page 2 of 2
Re: AHK Telegram MsgBox (Telegram_MsgBox)
Posted: 18 Oct 2019, 23:32
by gregster
adegard wrote: ↑25 Nov 2018, 15:31
If you'are active again : is it possible to send images ? (I would like to send screenshot from another computer)
Hi adegard, I know it's an old request and I am not
spur but I think he posted an example using the
curl tool here:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=24919#p231681
Just in case someone is interested and finds this, I finally posted an
AHK-only solution here - using
tmplinshi's CreateFormData():
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=68417&p=294332#p294332
(forgot about it, although I announced it further up this thread... some time ago
)
To be clear, this lets your bot
upload an image
from your computer to a chat.
The other way round,
downloading an image
to your computer that an user uploaded to Telegram is also possible, iirc. Next time
Re: AHK Telegram MsgBox (Telegram_MsgBox)
Posted: 20 Dec 2020, 04:37
by Vaggeto
I just wanted to say thank you and that this has been extremely helpful in communicating automated tasks.
I do want to note for anyone using this that if you're aiming for speed, in my case this did add about a 1.5 second delay per message sent which quite small in most cases IMO, but still something to consider.
Re: AHK Telegram MsgBox (Telegram_MsgBox)
Posted: 28 Nov 2022, 02:02
by Stinjere
TUTORIAL, PARA LOS QUE HABLAN ESPAÑOL
1. Vete a la aplicación de Telegram y abre un nuevo chat con @BotFather. Necesitas elegirle un nombre único (no puedes cambiarlo)
2. Ahora, abre un nuevo chat con el bot creado (EJM: @NombreDeTuBot, e inicia un nuevo chat con él) después, escríbele en el chat este número %Security Code% y envíelo como conversación. Presiona OK, cuando lo hayas hecho.
3. Ahora busca el número %Security Code% en el block de notas que se abrira, y en la misma línea debería aparecer algo como: "chat":{"id":0000," Números aleatorios.
4. Aquí tienes. Ahora, copia y pega los valores, en las variables Telegram Bot Token & Telegram ChatID en el código fuente, edita el script y copia y pega el token y el chat id que encontraste. (después de haberlo hecho, puedes eliminar todos los archivos .txt)
Re: AHK Telegram MsgBox (Telegram_MsgBox)
Posted: 28 Nov 2022, 02:20
by Stinjere
How do I solve this error, I don't know what to do after this message.
string
string with variable: win32_nt
string with variable: win32_nt
string with space
Re: AHK Telegram MsgBox (Telegram_MsgBox)
Posted: 28 Nov 2022, 02:25
by gregster
Stinjere wrote: ↑28 Nov 2022, 02:20
How do I solve this error, I don't know what to do after this message.
string
string with variable: win32_nt
string with variable: win32_nt
string with space
Not sure what you are asking.
What are you trying to do?
Which message do you get, and when?
Which error do you get?
Re: AHK Telegram MsgBox (Telegram_MsgBox)
Posted: 29 Nov 2022, 18:20
by Stinjere
The telegram bot sends me that message, I don't know what to do? what does that mean or is that the only thing the script does.