answer ( text = f 'Hi, ' ) # Starting to poll new events and sending them to middleware and handlers example. message_handler () async def hello ( event : Event ): await event. Install using pip: pip install -U async-icqīasic example of using this library will look like this from async_icq.bot import AsyncBot from async_icq.events import Event # Creating bot example = AsyncBot ( token = 'TOKEN', url = '', ) # Adding some basic event handler by decorators (handler must accept 2 arguments: bot and event) # Diffent decorators will set it up for diffent types of events. ICQ used to be the most popular IM application until Microsoft launched MSN. When instantiating the Bot class, add the address of your domain.Įxample: Bot(token=TOKEN, url=" "), by default we use the domain: (ICQ) or (VK Teams) ICQ Free & Safe Download for Windows 11, 10, 7, 8/8.1 from Down10.Software. You can configure the domain that hosts your ICQ server.Note: a bot can only reply after the user has added it to his contact list, or if the user was the first to start a dialogue.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |