GithubHelp home page GithubHelp logo

kanzaki-h-sct / project-iota Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 2.0 1017 KB

Fixed all issues and added Chats Service, providing a detailed turotial.

Home Page: https://www.ctcoreteam.com/

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%
api line line-api linebot linepy modified

project-iota's Introduction

Startization - Project iota

Welcome to the world of Project - IOTA. We are CT Core Team, aims to provide a long-term API update for linepy.

If you want to encourage our team to continue the updates, leave a star on our Github project!

The following tutorial are available for the new Chats service.

Chats Service Tutorial

Note: 'chatMid' equal to previous version 'group.id'

  Left side is Chats Service, while right side is for comparing to previous group service. 
  • getChats([chatMid]).chats[0] - getGroup. >> In case, [] is a list.

  • getChatV2(chatMid) - getGroup.

    Above functions can be run with following attributes:   
    - type
    - chatMid
    - createdTime
    - notificationDisabled
    - favoriteTimestamp
    - chatName
    - picturePath
    - extra
        <!> extra also contain different attributes:
           - groupExtra
               - creator
               - preventedJoinByTicket
               - invitationTicket
               - memberMids
               - inviteeMids
               - peerExtra
    

Example Request Result: Chat(type=0, chatMid='', createdTime='', notificationDisabled=False, favoriteTimestamp=0, chatName='', picturePath='', extra=Extra(groupExtra=GroupExtra(creator='', preventedJoinByTicket=True, invitationTicket='', memberMids={'': }, inviteeMids={'': }), peerExtra=None))

  • getAllChatMids - getGroupIdsJoined.

You are asked to change the init value yourself, while there have different usages, from None to True, or False. Otherwise, it will returns an empty set.

  Attributes:
      - memberChatMids
      - invitedChatMids
  • updateChat(chatMid, UpdatedAttribute) - updateGroup.

     UpdatedAttribute can be determined as follow:
        - NAME = 1
        - PICTURE_STATUS = 2
        - PREVENTED_JOIN_BY_TICKET = 4
        - NOTIFICATION_SETTING = 8
        - INVITATION_TICKET = 16
        - FAVORITE_TIMESTAMP = 32
        - CHAT_TYPE = 64
    
  • deleteOtherFromChat(chatMid, [userMid]) - kickoutFromGroup.

  • deleteSelfFromChat - leaveGroup.

  • acceptChatInvitationByTicket - acceptGroupInvitationByTicket

  • acceptChatInvitation - acceptGroupInvitation

  • cancelChatInvitation - cancelGroupInvitation

  • createChat - createGroup

  • findChatByTicket - findGroupByTicket

  • inviteIntoChat - inviteIntoGroup

  • reissueChatTicket - reissueGroupTicket

  • rejectChatInvitation - rejectGroupInvitation

  • getChatRoomAnnouncementsBulk - getChatRoomAnnouncementsBulk

  • getChatRoomAnnouncements - getChatRoomAnnouncements

  • createChatRoomAnnouncement - createChatRoomAnnouncement

  • removeChatRoomAnnouncement - removeChatRoomAnnouncement

    Yeah, as you see, actually above these four functions haven't changed.
    

    Please read the entire README.md file, which is a respect for all of the developers or modifiers, and all of the users participated in this project.

CTCoreTeam & Thanks

The Group service has been discontinued and replaced by the Chats service. The API has been fixed to accommodate these changes and includes the necessary endpoints for the new service.

LINEPY is originally public by Fadhiil Rachman.

Special thanks to Github user: ratezpro - Provided examples of Chats service

  • CT Core Team Fixed all issue of Linepy with adding Chats Service, also giving a tutorial.

Appreciate to all Github Resouces which related to LINEPY. All of them may ever help this repository.

This repository contains the updated API for the discontinued Group service and the introduction of the new Chats service.

Usage & Legal Clarification

Please note the following legal information regarding the usage of this API:

  1. Disclaimer of Liability: The API provided in this repository is offered "as is" without any warranty or guarantee of any kind. The developers of this API shall not be held liable for any damages or losses arising from its use.

  2. Usage Compliance: Users of this API are solely responsible for ensuring their compliance with all applicable laws, regulations, and policies of their jurisdiction. It is the user's responsibility to obtain any necessary permissions, licenses, or consents required for their specific use case.

  3. Data Privacy and Security: This API may involve the processing of personal data. Users are responsible for handling any personal data in compliance with applicable data protection laws and regulations. It is strongly recommended to implement appropriate security measures to protect sensitive information.

  4. Intellectual Property: All intellectual property rights related to this API and its documentation belong to the respective owners. Users are granted a limited license to use the API strictly for its intended purpose as described in the documentation. Unauthorized reproduction, modification, or distribution of the API is strictly prohibited.

  5. Third-Party Dependencies: This API may utilize third-party libraries or services. The respective terms and conditions of these dependencies apply and users are encouraged to review and comply with them.

It is important to consult with legal professionals or your organization's legal department to ensure compliance with all relevant laws and regulations specific to your use case.

Please refer to the API documentation for detailed information on how to use each endpoint.

Contributing

If you would like to contribute to this project, please contact me directly via email or discord: .ct_

License

This project is licensed under the BSD-3 License.

project-iota's People

Contributors

junjuice avatar kanzaki-h-sct avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

project-iota's Issues

how fix removeE2EE

for publicKey in cl.talk.getE2EEPublicKeys():
cl.talk.removeE2EEPublicKey(publicKey)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.