hi everyone, is there any way to copy last message receive from telegram desktop application active conversation to my textbox in vb6 ? thanks for any advise
Printable View
hi everyone, is there any way to copy last message receive from telegram desktop application active conversation to my textbox in vb6 ? thanks for any advise
what is this? are you using with some code?Quote:
from telegram desktop application active conversation
yes i mean i wan create application in vb6 that can copy last message from telegram windows desktop application
they provide 2 APIs for you to use
https://core.telegram.org/api
Quote:
Working with Messages
messages.sendMessage Sends a text message
messages.sendMedia Sends a message with non-text content
messages.setTyping Transmits the current user typing event to the conversation partner or group
messages.getMessages Returns a list of messages by message identifiers
messages.getDialogs Returns a list of the current user’s conversations
messages.getHistory Returns messages from the history of a single conversation
messages.search Returns messages found based on a search query
messages.readHistory Marks message history as read
messages.readMessageContents Notifies the sender about the recipient having listened a voice message or watched a video
messages.deleteHistory Deletes message history
messages.deleteMessages Deletes messages by message identifiers
messages.receivedMessages Confirms that a client has received messages and cancels push notifications
messages.forwardMessage Forwards a single message
messages.forwardMessages Forwards messages by message identifiers
messages.sendBroadcast Sends messages out to multiple contacts
how to use this api connected with my vb6 ? please give me 1 simple sample source code use this api
here is an example i fouind
where the value will be placed into an excel cellCode:Set objHTTP = CreateObject("MSXML2.ServerHTTP60")
URL = "https://api.telegram.org/bot<token>/sendMessage?chat_id="id"&text=test"
objHTTP.Open "POST", URL, False
objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
objHTTP.send ("")
Cells(1, 1).Value = objHTTP.ResponseText
i am sure that google can provide multiple other alternatives
not working on vb6, its says activex component can't create... and stop on Set objHTTP = CreateObject("MSXML2.ServerHTTP60")
and how if i dont know the telegram bot token key, so i think is there trick to get last message on telegram desktop app to my vb6 text box, like send command to telegram desktop app and right klik on last message and select copy then paste to my vb6 text box
telegram desktop like this picture belowAttachment 158383
you may need to install itQuote:
not working on vb6, its says activex component can't create