Coder Social home page Coder Social logo

Comments (8)

aelkheir avatar aelkheir commented on May 28, 2024 1

I wanted to create some ptb quality classes so badly πŸ₯Ή, soo

Information about Business Accounts

  • Added the class BusinessIntro and the field business_intro to the class Chat.
  • Added the class BusinessLocation and the field business_location to the class Chat.
  • Added the classes BusinessOpeningHours and BusinessOpeningHoursInterval and the field business_opening_hours to the class Chat.

from python-telegram-bot.

harshil21 avatar harshil21 commented on May 28, 2024 1

if any easy topic is here which will suitable for easy to start with as i want to start freshly, any suggestion pls me

alright, you can try doing the "Added the field is_from_offline to the class Message." part. You basically have to copy the field documentation from core.telegram.org/bots/api#message into our library.

How to add the field:

  1. Open _message.py and scroll to the class documentation.
  2. Add entry for is_from_offline in both the Args section and Attributes section.
  3. Scroll down to the __slots__ tuple and add is_from_offline there also.
  4. Scroll further to __init__ and add is_from_offline to the last entry, just before the *.
  5. Add self.is_from_offline = is_from_offline to the __init__ body.

For adapting tests:

  1. Open the test_message.py file and add an entry for is_from_offline here.
  2. Add an entry to the ids list just below that.

Don't forget to base your branch on api-7.2.

from python-telegram-bot.

mahdyar avatar mahdyar commented on May 28, 2024 1

I'll take the "Added the field is_from_offline to the class Message" section

from python-telegram-bot.

harshil21 avatar harshil21 commented on May 28, 2024

I'll take the "working on behalf of business accounts" & "Integration with Business accounts" section

from python-telegram-bot.

clot27 avatar clot27 commented on May 28, 2024

I'll take the "Request Chat Improvements" part

from python-telegram-bot.

RanaUniverse avatar RanaUniverse commented on May 28, 2024

i really want to work here and contribute β™₯️β™₯️β™₯️
if any easy topic is here which will suitable for easy to start with as i want to start freshly,
any suggestion pls me, i will try to check, i am still not good in OOP here, i need to look pls suggest me something which topic to choose,
likeπŸ‘‡πŸ‘‡πŸ‘‡

maybe i can remove the is_animated or is_video parameters to remove from the Sticker Set Class

from python-telegram-bot.

RanaUniverse avatar RanaUniverse commented on May 28, 2024

still it looks like i need a more learn python with background works with dunder and so on,
i think if i will download the PTB zip and edit and send the edited zip to u then can be be done,

as the git commands which are said in the guide section is really going over my head,
and i am not familiar with these.

from python-telegram-bot.

harshil21 avatar harshil21 commented on May 28, 2024

@RanaUniverse If that is the case, you can learn git and get more familiar with OOP and contribute in another issue at a later date.

from python-telegram-bot.

Related Issues (20)

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.